info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Branching from Working Directory


From: Larry Jones
Subject: Re: Branching from Working Directory
Date: Tue, 20 Nov 2001 14:40:34 -0500 (EST)

address@hidden writes:
> 
> I would like to create a branch based on my current working directory.
> 
> Well the problem is that the current working dir contains a lot of 
> locally modified files. I dont want them to be reflected in the main 
> trunk but only in the new branch.

That's not a problem.  Branches are created in the repository, not in
your working directory.  So, if you create a branch by using tag -b in
your working directory, the revision that's tagged is the revision that
you checked out -- the fact that you have made local modifications to
the file is irrelevant.  Once you've created the branch, you can switch
your local directory to it using update -r and then when you commit your
changes, you'll be committing them to the branch.

-Larry Jones

Oh yeah?  You just wait! -- Calvin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]