You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Vasilescu, Dan" <Da...@lmsintl.com> on 2006/03/10 14:35:40 UTC

Creation revision of a branch

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

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

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

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

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

Thanks,
Dan
+-+-+- Email Confidentiality Footer +-+-+- 
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not print, retain, copy nor disseminate this message or any part of it to anyone and you should notify the sender by reply email and destroy this message. Neglecting this clause could be a breach of confidence. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that are not related to the official business of my firm shall be understood as neither given nor endorsed by it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Creation revision of a branch

Posted by Paul Koning <pk...@equallogic.com>.
>>>>> "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
revision. 

 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
from.

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.

  paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org