Collin Klopfenstein
Collin Klopfenstein

Reputation: 2264

Command-line CVS update and local delete of a directory

I accidentally locally deleted a directory in a CVS repository, which I'm also managing with mercurial locally. I can hg revert the directory, but I've got hg set up to ignore the CVS directories, so there's no CVS directory. CVS is freaking out every time I try to do a commit (it's a trivial directory that was removed), unless I specifically target the files to be committed.

I've tried CVS update and that's not getting it done. Can anyone make a suggestion?

Upvotes: 3

Views: 5090

Answers (2)

John Kugelman
John Kugelman

Reputation: 361849

cvs update -d

The -d flag tells CVS to look for new directories. By default it will not automatically pick up new directories during updates just in case you intentionally omitted particular sub-trees of your repository during checkout.

Personally I always want the -d option to be used so I added this option (and a few others) to my ~/.cvsrc configuration:

cvs -q
checkout -P
update -d -P
diff -u

Upvotes: 7

Justin Ethier
Justin Ethier

Reputation: 134207

You could try using cvs checkout to check the directory out again. Just go to the root of your repository and use the command to only check out that specific directory.

Upvotes: 0

Related Questions