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

Re: Creation revision of a branch

From: Paul Koning <pkoning_at_equallogic.com>
Date: 2006-03-10 15:43:46 CET

>>>>> "Dan" == Dan Vasilescu <Vasilescu> writes:

 Dan> Can I get from somewhere the creation revision of a branch?

You mean the revision in which it was created? svn log --stop-on-copy.

Or the revision of what was copied to create the branch?
svn log --stop-on-copy -v will show the source path, including the

 Dan> It is possible to have branches created on from other branch.

Yes. Just copy from whatever you want to copy; that may be a branch.

If you do this, you need to be a bit more careful if you merge back to
the trunk. If you follow the documentation for "svn merge" you'll see
it mentions "svn log --stop-on-copy" to determine the branch creation
point, which you then use as the start revision number in the merge.
That is correct IF you're merging to whatever the branch was taken

But if you had branch B1, from trunk rev 100, and then you branch B1
at rev 150 to make branch B1_1, and then you want to merge from B1_1
back to trunk, you will want to merge starting at rev 100 -- NOT rev
150. Alternatively, of course, you may want to merge instead in two
steps: from B1_1 to B1 (starting at 150) and then the result from B1
to trunk (starting at 100).

 Dan> I want to make a revision tree and it would be helpful for me to
 Dan> know the order in which the branches were created.

 Dan> Or I want to see if I have files modified in the branch after
 Dan> the branch creation.

svn log --stop-on-copy will do that; the earliest rev it shows is the
branch creation rev, the others are branch changes. You issue that
command on the branch you want to examine.

 Dan> Or I want to get o folder from the branch at a previous revision
 Dan> and I want to be sure that the revision is after branch creation
 Dan> otherwise the folder will disappear.

I don't understand what you mean by that.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 10 15:51:23 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.