rename question

brianharris medotin at gmail.com
Thu Feb 14 09:05:55 CST 2008


Hi, I've got a simple use case which I don't like the results of.  Could
someone offer an alternative method, or a post-processing suggestion?

I'm migrating a single cvs repository to a single hg repository.  One of the
modules in the cvs repo is called X.  The big issue is wasted disk space in
the process.

After converting X, I now have an hg repository in a directory X-hg such
that du -sh X-hg shows 530M, fine.  However, considering that I'm trying to
recreate the directory structure of CVS, I want to move the contents of X-hg
to a subdir called X to allow for future merging of additional converted CVS
modules into this hg repository.  If I do the following:

cd X-hg;  for x in *; do hg rename $x X/$x; done;  hg commit -m "rename";

du -sh X-hg now shows 741M.  Obviousily, as this step is simply to recreate
the old directory structure, I don't care about having this history trail
so...  Is there some way to avoid the extra storage while arriving in the
same state?

Thanks,
Brian 
-- 
View this message in context: http://www.nabble.com/rename-question-tp15481199p15481199.html
Sent from the Mercurial mailing list archive at Nabble.com.



More information about the Mercurial mailing list