rename question
Matt Mackall
mpm at selenic.com
Thu Feb 14 10:09:10 CST 2008
On Thu, 2008-02-14 at 07:05 -0800, brianharris wrote:
> 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?
I think the answer is "filemap", which allows you to do various
remappings during conversion. See hg convert --help for details.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list