Can't get "svn log --use-merge-history" to list all

889 views
Skip to first unread message

Stefan Karlsson

unread,
Mar 6, 2016, 12:51:18 PM3/6/16
to us...@subversion.apache.org
I will try to describe the "scenery", but I have also attached a Windows batch file that creates a repository ("repos") and a work folder ("work"), as well as the log file ("log.txt") described below. I have also attached my copy of "log.txt".

This is in short was the batch file does:

A branch is created from trunk, and changes are made in the branch (but NO CHANGE is made in the trunk). This branch is then merge into trunk.

A second branch is then created, but now there are changes made in both trunk and branch. This branch is also merged into trunk. Now there are of cause conflicts, but all changes are saved (trunk first, then branch)

So now to the actual problem.

Showing the log on the file, with:
"svn log --use-merge-history --verbose trunk\example.txt

It shows (as expected) each change made in the second branch,
but NOT each change made in the first branch !?!?!

...and the file does include all the changes, but why isn't it listed in the log?

I am expecting to see r3, r4 and r5, (just like r9, r10 and r12 for the second branch)
but they are NOT listed in the log, see attached file "log.txt"

BTW, I'm using svn, version 1.9.3 (r1718519)

Is this a bug or am I doing it wrong?

/Stefan

create_scenery.bat.txt
log.txt

Gábor Kertai

unread,
Dec 8, 2016, 1:33:48 AM12/8/16
to subversion-users, us...@subversion.apache.org, sbkar...@gmail.com
I just hit this same brick wall when trying to use the XML output from command line SVN 1.9.3. Did you happen to find a solution?

Regardless of how many revisions were merged into a commit, I only receive the <logentry reverse-merge="false" revision="…"> node for just one of them. SVN seems to pick a random revision to include, it is not always the "first" revision in any logical order.

Regards,
Gabor

On Sunday, March 6, 2016 at 6:51:18 PM UTC+1, Stefan Karlsson wrote:
 
Showing the log on the file, with:"svn log --use-merge-history --verbose trunk\example.txt

It shows (as expected) each change made in the second branch, but NOT each change made in the first branch !?!?!

...and the file does include all the changes, but why isn't it listed in the log?

Stefan Karlsson

unread,
Feb 14, 2017, 1:32:35 AM2/14/17
to Gábor Kertai, subversion-users, us...@subversion.apache.org
No I haven't really found a solution, the problem is still there.
I have however found that if get the log on the folder instead of the file then I see all revisions.

That is, using this command (with svn version 1.9.5):
  svn log --use-merge-history --verbose work\trunk\ > log2.txt

/Stefan
Reply all
Reply to author
Forward
0 new messages