info-cvs
[Top][All Lists]
Advanced

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

RE: how do I cvs delete a file that starts with a hyphen?


From: Alleman, Lowell
Subject: RE: how do I cvs delete a file that starts with a hyphen?
Date: Fri, 27 Sep 2002 18:19:26 -0400

Try using a '--' before the file name.  A number of unix command line tools
allow you to place a '--' on the argument list to explicitly end a list of
arguments and start a list of files.  I haven't tried this, I'm just
guessing.... I know that it works for the simple file tools like ls, rm, cp,
...

cvs commit -- -temp


if this doesn't work and you have access to the physical repository, you
could always rename it there, update your sandbox, delete it using cvs, then
rename back to its original name in the repository.... this is ugly and not
the recommended way, but it should work.

- Lowell
address@hidden

-----Original Message-----
From: Francis Hwang [mailto:address@hidden
Sent: Friday, September 27, 2002 5:39 PM
To: Info CVS
Subject: Re: how do I cvs delete a file that starts with a hyphen?


That doesn't seem to work:

$ cvs commit -m "" OLDrare1.rhiz ./-temp

Removing OLDrare1.rhiz;
/usr/local/cvsroot/rhizome_www/cgi-secure/OLDrare1.rhiz,v  <--
OLDrare1.rhiz
new revision: delete; previous revision: 1.1.1.1
done
Removing -temp;
cvs commit: conflicting specifications of output style
diff: invalid option -- m
cvs commit: Try `diff --help' for more information.
cvs [commit aborted]: error diffing -temp


> Either commit the whole directory or commit another changed file whose
> name doesn't start with "-" first.
>
> -Larry Jones
>



_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs




reply via email to

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