Re: How to detect missing CVS directories
Arnon Weinberg <[email protected]> Sun, 26 Feb 2012 14:09:48 -0500
| Newsgroups | gmane.comp.version-control.cvs.general |
|---|---|
| Organization | Back2Front |
| Message-ID | <[email protected]> |
> 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