Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line to list all merge(copies) in subversion?

Tags:

svn

How can you list all subversion merges?

For example:

Trunk ____9_____14____20___
          \      \     \
           \______\_____\____
Branch01   10     15    21

If I branched on rev 9, and then did a merge at rev 14. What is the subversion command line that identifies rev 15 as a merge from rev14 from trunk? The only way I can tell now is from the log file. However, I know I can issue the following command:

svn log –-stop-on-copy svn:<URL>/branches/Branch01

and it will stop on rev 10 (branched). Is there a command I can issue, that will list 21, 15, and 10 as copies from trunk?

like image 488
Dennis Miller Avatar asked Sep 27 '10 18:09

Dennis Miller


People also ask

What is svn merge command?

Unlike svn diff, the merge command takes the ancestry of a file into consideration when performing a merge operation. This is very important when you're merging changes from one branch into another and you've renamed a file on one branch but not the other.

What is a sync merge svn?

Sync merge is used when you want to fetch all of the latest changes made on your parent branch (e.g. trunk). Using this will keep your feature branch up-to-date with the parent branch.


1 Answers

You can use the svn plist command for this...

 svn plist -v svn:mergeinfo URL/branches/Branch01

will print out the information about the branch

an other way is to use the --use-merge-history

svn log -v --use-merge-history URL/branches/Branch01

EDIT: The following seemed to me what you are searching for.

svn mergeinfo URL/trunk URL/branches/Branch01 --show-revs merged
like image 187
khmarbaise Avatar answered Nov 15 '22 00:11

khmarbaise