[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

"svn log --xml -g" doesn't identify a reverse merge but "svn log -g" does

From: Andrew Reedick <Andrew.Reedick_at_cbeyond.net>
Date: Thu, 16 Jan 2014 15:31:39 -0500

I need a sanity check. Is this an oversight that needs to be corrected, or am I missing something?

Problem:
"svn log -g" will explicitly identify a reverse merge, however, when specifying xml output ("svn log -g --xml") no such identification is made.

Example:
In this case, r13 on branches/test was merged to trunk (which created r15 on trunk.) I then reverse merged the r13 change out of trunk using "svn merge -c -15".

a) "svn log -g -v" explicitly states that r13 was "Reverse merged via..":
    ------------------------------------------------------------------------
    r17 | andrew | 2014-01-16 14:41:15 -0500 (Thu, 16 Jan 2014) | 1 line
    Changed paths:
       M /trunk
       M /trunk/a.txt
    
    svn merge -c -15 .
    ------------------------------------------------------------------------
    r13 | andrew | 2014-01-16 14:37:17 -0500 (Thu, 16 Jan 2014) | 1 line
    Changed paths:
       M /branches/test/a.txt
==> Reverse merged via: r17
    
    branch 3
    ------------------------------------------------------------------------

b) However, "svn log -g -v --xml" does not indicate that it was a reverse merge:
    <logentry revision="17">
        <author>andrew</author>
        <date>2014-01-16T19:41:15.571931Z</date>
        <paths>
            <path
               action="M"
               prop-mods="true"
               text-mods="false"
               kind="dir">/trunk</path>
            <path
               action="M"
               prop-mods="false"
               text-mods="true"
               kind="file">/trunk/a.txt</path>
        </paths>
        <msg>svn merge -c -15 .</msg>
==> <logentry revision="13">
            <author>andrew</author>
                <date>2014-01-16T19:37:17.531316Z</date>
                <paths>
                <path
                   text-mods="true"
                   kind="file"
                   action="M"
                   prop-mods="false">/branches/test/a.txt</path>
            </paths>
            <msg>branch 3</msg>
        </logentry>
    </logentry>

Andrew Reedick
CBeyond
Cloud Development, SCM
O: 678.486.8163
Received on 2014-01-16 21:32:17 CET

This is an archived mail posted to the Subversion Users mailing list.