Discussions  >  CollabNet Subversion Admins  >  Re: Hooks and differences between branching and commit

Back to topic list

Re: Hooks and differences between branching and commit

Author cmpilato (OCN Member)
Full name C. Michael Pilato
Date 2012-03-28 09:54:37 PDT
Message On 03/28/2012 12:45 PM, Michael Powell wrote:
> What I need to understand is: does Subversion see a "copy to" or branch
> operation any differently from a commit? If read the documentation,
> "branch" is effectively a "copy" and not a "commit" operation?

To create a branch on the server, you generally commit a copy. This can be
a multi-step process:

   $ svn checkout --depth=empty ROOT-URL WC
   $ svn update --depth=empty WC/branches
   $ svn update WC/trunk
   [...]
   $ svn copy WC/trunk WC/branches/B1
   $ svn commit WC/branches/B1 -m "Create a new branch"

or it can be a single-step operation:

   $ svn copy ROOT-URL/trunk ROOT-URL/branches/B1 -m "Create a new branch"

But in either case, a commit occurs, and the changes included in the commit
involve a directory copy.

--
C. Michael Pilato <XXXX@XXXX>
CollabNet <> www.collab.net <> Distributed Development On Demand
Attachments

« Previous message in topic | 3 of 4 | Next message in topic »

Messages

Show all messages in topic

Hooks and differences between branching and commit mwpowellhtx (OCN Member) Michael Powell 2012-03-28 09:45:28 PDT
     Re: Hooks and differences between branching and commit markphip (OCN Member) Mark Phippard 2012-03-28 09:50:42 PDT
     Re: Hooks and differences between branching and commit cmpilato (OCN Member) C. Michael Pilato 2012-03-28 09:54:37 PDT
     Re: Hooks and differences between branching and commit davestiff (OCN Member) David Stiff 2012-03-28 13:20:24 PDT
Messages per page: