You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leo Simons <le...@apache.org> on 2003/04/10 22:22:08 UTC

Re: CVS Pruning instructions

Berin Loritsch wrote:
> Peter Royal wrote:
> Instead of simply 'rm -rf' a directory in CVS, can we apply the
> following procedure?:
> 
> 1) cvs -z3 delete -f directoryname
> 2) wait a reasonable time
> 3) rm -rf directoryname

I'd make that

1) talk about the change and give people some time to object or make 
their own backup copies
2) tar and gzip up the materials and store somewhere sensible (make sure 
to *NOT* exclude the CVS directories as some tar version do; this means 
we have lost lots of stuff in recent restructuring!)
3) cvs -z3 delete -f directoryname
4) commit

rm -RF is *not* good and it causes many headaches, especially for more 
complex repos or repos with custom scripts, or when done improperly (and 
really, most people don't know well enough what they're doing). It is 
not a good idea at all.

> The 'cvs -z3 delete -f' allows the directory to be nicely and
> naturally pruned from everyone's CVS the next time they update.
> A reasonable time to wait is the first 24 hour time period of
> a week day.  IOW, if you delete the directory on Monday, you
> can permanently delete it a full 24 hours later

make that a few months, please.

just to make this even more clear: the policy is and should be to *never 
ever* use the 'rm' or 'mv' commands within a cvs repository structure.

cheers,

- Leo



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: CVS Pruning instructions

Posted by Berin Loritsch <bl...@apache.org>.
Leo Simons wrote:
> 
> 2) tar and gzip up the materials and store somewhere sensible (make sure 
> to *NOT* exclude the CVS directories as some tar version do; this means 
> we have lost lots of stuff in recent restructuring!)

We have?!?

Are you referring to the restructuring on the root avalon CVS?

If so, keep in mind that it is the REPOSITORY itself that was tar gzipd.
You can untar this, and set a CVSROOT folder right next to it.  Start
up a CVS daemon, and you can use it just as if it has always been live.

That means we also kept the history--not just the latest stuff as it
seems like you are suggesting.

-- 
"You know the world is going crazy when the best
rapper is a white guy, the best golfer is a black guy,
The Swiss hold the America's Cup, France is
accusing the US of arrogance, and Germany doesn't want
to go to war. And the 3 most powerful men in America
are named 'Bush', 'Dick', and 'Colon' (sic)".

-----Chris Rock


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org