Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out to which branch a specific subversion revision belongs?

When you do an svn log on the trunk there may be gaps in the revisions numbers:

------------------------------------------------------------------------
r1094 | user | 2013-04-23 09:14:01 +0200 (Tue, 23 Apr 2013) | 2 lines

commit msg

------------------------------------------------------------------------
r1067 | user | 2012-01-16 14:29:17 +0100 (Mon, 16 Jan 2012) | 1 line

other commit msg
------------------------------------------------------------------------

Thats because the other commits were made on branches. The question is how do I determine to which branch a given revision belongs to?

like image 986
Timo Avatar asked Aug 26 '13 09:08

Timo


People also ask

How do I find specific revision in svn?

There are two options available to get informatioon about past revisions: svn log -r <rev number> <url> : the commit message of a specified revision and url. svn info -r <rev number> <url> : some technical information about a specified revision and url.

How do you find the difference between two svn revisions?

Use just svn diff to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions. TARGET s may be all working copy paths or all URL s.

Is there branching in svn?

SVN's “branch” directory runs parallel to the “trunk” directory. A SVN branch copies the trunk and allows you to make changes. When the new feature is stable, the branch is merged back. Here's a basic step-by-step overview of SVN branching and merging.


1 Answers

Log for repository root include all history for any subtree of repo

svn log -v -q URL-OF-REPO-ROOT/ -r NNN -l 1

will show log for revision NNN (-r option), affected files (-v option) and only this single revision (-l 1 option)

like image 187
Lazy Badger Avatar answered Oct 05 '22 11:10

Lazy Badger