info-cvs
[Top][All Lists]
Advanced

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

Re: How to detect missing CVS directories


From: Arnon Weinberg
Subject: Re: How to detect missing CVS directories
Date: Sun, 26 Feb 2012 14:09:48 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4


They wont accidentally
delete a CVS directory, if they are required to checkin code once a day

That answers my question.  Running:
>//cd//
>cvs -n commit
...
cvs commit: in directory directory/pwd
cvs [commit aborted]: there is no version here; do 'cvs checkout' first

does a fine job of detecting missing CVS directories, as desired. Thank you Arthur.

to restore the missing 'CVS'
directories.  Ie:
* checkout the tree again, or

The error message from cvs commit suggests the same thing, however as per my earlier example, this doesn't work, unless I'm doing it wrong.

One solution I found is to temporarily rename the containing directory:
>cd ..
>mv pwd pwd.bak
>/cvs checkout -A -d ~/directory module/
>mv pwd/CVS pwd.bak
>rm -rf pwd
>mv pwd.bak pwd

Let me know if there is a simpler solution that I'm overlooking.


Arnon Weinberg
www.back2front.ca




reply via email to

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