[Top][All Lists]

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

Re: Problems with CVS TAG recursive

From: Larry Jones
Subject: Re: Problems with CVS TAG recursive
Date: Fri, 18 Jul 2008 10:59:44 -0400 (EDT)

address@hidden writes:
> I want to do a tag of every file currently in a workarea so I tried to
> use:
> > cvs tag -R tag_name .
> However it exits the error:
> cvs [tag aborted]: could not chdir
> before it has finished tagging all the files.
> The reason is there is a directory in the CVS repository that I do not
> have in my work area and that I do not want to tag.

How did you arrange that?  The only way I can reproduce your problem is
by removing a directory from my working directory after having checked
it out from CVS.  You can't go messing around with stuff behind CVS's
back and then expect it to work right!  If you didn't want that
directory, you shouldn't have check it out in the first place.[1]

If this is how you got where you are, then you can fix it by manually
editing the CVS/Entries file in the parent of the missing directory and
removing the entry for that directory (which will look something like
"D/dirname////").  Note, however, that manually editing CVS control
files can get you into a lot of trouble and should not be a regular

If that's not how you got where you are, please provide more details
including which version(s) of CVS you are using and whether you're using
a local repository or client/server mode.

[1] To exclude a subdirectory from a checkout, use a command like:

        cvs co "!foo/subdir" foo

Note that the exclusion must come *before* the directory it applies to
and that some kind of quoting is necessary if your shell interprets "!"
Larry Jones

When you're SERIOUS about having fun, it's not much fun at all! -- Calvin

reply via email to

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