New Location

My website has moved to http://www.jasonwhaley.com. Please visit there for the latest and only remain here for legacy content.

Tuesday, December 9, 2008

Subversion Tip - Where and what revision was a branch created from?

To find out where a particular subversion file or directory (namely a branch) was copied from and at what revision, is as simple as the following command:
svn log --stop-on-copy -v file
The tail of this output will be similar to the following:
------------------------------------------------------------------------
r2049 | jwhaley | 2008-10-17 19:47:20 -0400 (Fri, 17 Oct 2008) | 1 lines
Changed paths:
A /project/branches/yourbranch (from /project/trunk:2048)
The items in parantheses tell you what you need to know. In this case, /project/branches/yourbranch was copied from /project/trunk at revision 2049.

No comments: