This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CVS : Adding a new directory structue to a branch


Philip Walford <philip.walford@preston.net> writes:

> On Wed, 2003-10-08 at 03:10, Ian Lance Taylor wrote:
> > Erik Christiansen <erik@dd.nec.com.au> writes:
> > > On Mon, Oct 06, 2003 at 03:36:34AM -0700, Marcus Binny wrote:
> > > > How can I add a new directory structure
> > > > (containing multiple subdirs and files) to this branch
> > > > only, without affecting users working on the main
> > > > trunk or other branches.
> > > 
> > > Marcus,
> > > 
> > >    You need: cvs import -b new-branch
> > > (nearly as much as a copy of the Cederqvist)
> > 
> > That won't work by itself.  After doing the import, people who check
> > out the trunk will get the new files in the new directories.
> > 
> > I don't know of a way other than to do the import, and then to check
> > out the trunk and explicitly cvs rm the newly added files from the
> > trunk.
> 
> Unless I'm missing something, you can simply cvs add the directories and
> files onto the branch.  Simply check out the branch in question, copy in
> the files and then cvs add the directories then files.
> 
> The files you add will be added only to your branch.

Yes, that will work.

Of course, you won't easily be able to track third party changes.  But
that may not be an issue here.

The only thing to note in that case is that everybody should put
something like
    update -P
    checkout -P
in their .cvsrc file.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]