info-cvs
[Top][All Lists]
Advanced

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

Re: batch remove in a directory


From: Larry Jones
Subject: Re: batch remove in a directory
Date: Thu, 25 Aug 2005 13:57:09 -0400 (EDT)

Soo-Hyun Choi writes:
> 
> i removed all pdf files in the directory, and did 'cvs remove *.pdf'
> expecting the files to be removed from the server. but, what is says
> is 'cvs server: nothing known about `*.pdf'.

Correct -- wildcards are expanded on the client based on the files in
your working directory.  Since you already deleted all the .pdf file,
the wildcard doesn't match anything and is thus taken verbatim.

> how can i remove a bunch of files with the same extension in a
> directory from the cvs server?

The simplest way is to use ``cvs rm -f *.pdf'' which removes the local
file and removes it from the server all at once.  Since you've already
removed the local files, you no longer have that option.  What you can
do is just ``cvs rm'' with no arguments -- that will complain about all
the files that still exist but will nonetheless remove the ones that
don't.

-Larry Jones

I take it there's no qualifying exam to be a Dad. -- Calvin




reply via email to

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