Subject: Re: Removing Empty Directories from a CVS Checkout
To: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
From: Greg A. Woods <woods@kuma.web.net>
List: current-users
Date: 10/20/1996 10:59:57
[ On Sun, October  6, 1996 at 16:43:28 (-0400), Bill Sommerfeld wrote: ]
> Subject: Re: Removing Empty Directories from a CVS Checkout 
>
> > That's fine, but how do i get these empty directories?
> > I sup into a local reference tree.
> > I do an import into another CVS master tree.
> > How can I remove directories and files deleted by sup in the reference tree 
> > from the CVS master tree?  
> > I did not find any option for cvs import that even tells me that files in the 
> > CVS master tree are no longer present in the tree imported.

There's no option to 'cvs import' that'll remove files no longer present
in the new vendor release, however:

> If you do each import with a unique label, files not present in the
> baselevel you import don't get the new label.

Yes, with a unique vendor release tag for each import you can obtain a
list of removed files by simply running:  'cvs -nq tag -F last_rel' from
within a fresh (i.e. updated) working directory.  You can then strip the
filename from this list and feed it to 'cvs rm -f `cat rmlist`' and all
the files deleted by sup will be marked dead in your reposistory.

-- 
							Greg A. Woods

+1 416 443-1734			VE3TCP			robohack!woods
Planix, Inc. <woods@planix.com>; Secrets Of The Weird <woods@weird.com>