Re: Files beginning with a minus sign
In article <[EMAIL PROTECTED]>, Franky Van Liedekerke <[EMAIL PROTECTED]> wrote: >wanted to delete the file. Marking the file for deletion was ok, but the >commit is not working. The cvs commit command at first complained about >this file with "unknown option", so I called cvs like this: http://www.cvshome.org/cyclic/cvs/dev-diff-hyphen.txt Someday I should really write that sanity check and resubmit the patch. mrc -- Mike Castle [EMAIL PROTECTED] www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: Files beginning with a minus sign
On 28 Mar 2003, Ronald Petty wrote: > What about > > cvs commit "-filename.txt" The " " characters are not part of a command line argument; they are just lexical syntax processed by the shell, affecting how it tokenizes the command line, and also affects the semantics of certain expansions. For example, in a script or shell function, the syntax: "$@" will expand the arguments such that quotes are placed around each one. Thus that the command line structure is preserved when the result of the expansion is re-tokenized. The token "-abc" means exactly the same thing as -abc . ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: Files beginning with a minus sign
Franky Van Liedekerke writes: > > So now the cvs command itself ws happy, but the server complains with: > > up-to-date check failed for -filename.txt I think your best bet will be to make an innocuous change to another file and then do: cvs ci otherfile -filtename.txt I believe I have protected all of the client/server communications against files with leading - in the current development versions. -Larry Jones I obey the letter of the law, if not the spirit. -- Calvin ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
RE: Files beginning with a minus sign
> From: Franky Van Liedekerke [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 11:51 AM > The file was already checked out from cvs, so it is commited. Sound logic there. > But now I > want to delete it, and it seems modifying the repository by > hand is the > only way to do it ... I found `cvs -q remove ./-filename.txt` did the job nicely. /|/|ike ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: Files beginning with a minus sign
On Fri, 28 Mar 2003 11:13:59 -0800 "Mike Ayers" <[EMAIL PROTECTED]> wrote: > > > From: Franky Van Liedekerke [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 28, 2003 3:07 AM > > > > So now the cvs command itself ws happy, but the server complains with: > > > > up-to-date check failed for -filename.txt > > First do `cvs update -filename.txt` and see what that says. My > testing found that I could add the file, but not (so far) commit > it. You may have an uncomitted file there. > The file was already checked out from cvs, so it is commited. But now I want to delete it, and it seems modifying the repository by hand is the only way to do it ... ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
RE: Files beginning with a minus sign
> From: Franky Van Liedekerke [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 3:07 AM > So now the cvs command itself ws happy, but the server complains with: > > up-to-date check failed for -filename.txt First do `cvs update -filename.txt` and see what that says. My testing found that I could add the file, but not (so far) commit it. You may have an uncomitted file there. /|/|ike ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: Files beginning with a minus sign
What about cvs commit "-filename.txt" ? or cvs commit "./-filename.txt" Ron On Fri, 2003-03-28 at 12:14, Eric Siegerman wrote: > On Fri, Mar 28, 2003 at 11:15:43AM +, Franky Van Liedekerke wrote: > > cvs commit -m "message" -- -filename.txt > > > > So now the cvs command itself ws happy, but the server complains with: > > > > up-to-date check failed for -filename.txt > > Here are some possibilities (*not* tested): > 1. cvs commit ./-filename.txt > Forward slash to hopefully keep CVS happy > 2. cvs commit .\-filename.txt > Backslash to hopefully keep Windows happy > 3. Same as (1), but do it on a UNIX box > 4. Same as (1), but do it on the CVS server itself, in a local > (i.e. non-client-server) sandbox > > If all else fails, and if you don't need the file's revision > history (but think twice about this!): > 5. Just go into the repo and "rm ./-filename.txt,v" (I know the > "./" will keep rm happy; that variant I *have*, umm, tested, on > a number of occasions :-) > > -- > > | | /\ > |-_|/ > Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] > | | / > A distributed system is one on which I cannot get any work done, > because a machine I have never heard of has crashed. > - Leslie Lamport > > > ___ > Info-cvs mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/info-cvs > ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
Re: Files beginning with a minus sign
On Fri, Mar 28, 2003 at 11:15:43AM +, Franky Van Liedekerke wrote: > cvs commit -m "message" -- -filename.txt > > So now the cvs command itself ws happy, but the server complains with: > > up-to-date check failed for -filename.txt Here are some possibilities (*not* tested): 1. cvs commit ./-filename.txt Forward slash to hopefully keep CVS happy 2. cvs commit .\-filename.txt Backslash to hopefully keep Windows happy 3. Same as (1), but do it on a UNIX box 4. Same as (1), but do it on the CVS server itself, in a local (i.e. non-client-server) sandbox If all else fails, and if you don't need the file's revision history (but think twice about this!): 5. Just go into the repo and "rm ./-filename.txt,v" (I know the "./" will keep rm happy; that variant I *have*, umm, tested, on a number of occasions :-) -- | | /\ |-_|/ > Eric Siegerman, Toronto, Ont.[EMAIL PROTECTED] | | / A distributed system is one on which I cannot get any work done, because a machine I have never heard of has crashed. - Leslie Lamport ___ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs