Thanks. If the "cvs rm file1" command succeeds, it needs me to commit. If I figure out that I shouldn't rm the file1, can I cancel the previously issued command? My concern is that if I leave the wrong command hanging there, in the future I may issue a "cvs commit" to confirm other commands and CVS will accidentally remove file1.
--- On Thu, 9/18/08, Larry Jones <address@hidden> wrote:
From: Larry Jones <address@hidden> Subject: Re: Simple question of removing a directory in CVS To: address@hidden Cc: address@hidden Date: Thursday, September 18, 2008, 2:29 PM
Steve Gao writes: > > (1) If I issue a command to remove a dir in CVS > cvs rm
dir > But the dir is not empty in CVS, will that command work?
That depends on your definition of "work". :-)
CVS only manages files, not directories, so you *can't* remove a directory in CVS. What the above command will do is try to remove all the files in that directory, which will fail if there are any that still exist in your working directory (unless you use the "-f" flag to delete the working file as well). -- Larry Jones
I keep forgetting that rules are only for little nice people. -- Calvin
|