On Sun, Jan 09, 2000 at 08:31:53PM +0100, Ulrich Weigand wrote:
> I'm a bit uneasy about applying this change, not because I don't like
> it, but for a technical reason:  CVS doesn't really know how to rename
> or move directories.  So you can either remove the old directory by force
> and start from scratch in the new one (in which case you loose all change
> log data), or else you are stuck with the old, empty directories ...

Well, yes and no.  If you use cvs itself and don't edit the repository
manually (which you should NEVER do, btw) .. you can simply do:
mkdir sub2; cp subdir/* sub2
cd subdir; cvs rm -f *
cvs add sub2
cd sub2
cvs add *
cvs commit -m "moved from subdir, which was put in the attic"

... and everybody just learns to add '-P' to their 'cvs update' which
tells cvs to remove any empty directories.  The files in the repository
go into the 'Attic' subdiirectory, and this means that if you wish to
'cvs get -D 'the day before moving to sub2' freemware' it will still
function correctly.

Nobody looses history information, and the files show up where they're
supposed to be, and the files show a history of where to get older
revision info.
-- 
Todd Fries .. [EMAIL PROTECTED]

Reply via email to