hg convert misses files
Scott Palmer
swpalmer at gmail.com
Sat May 28 15:09:54 UTC 2011
On 2011-05-28, at 8:57 AM, Raymond Toy wrote:
>
> I'm tryin to extract a directory from an hg repo and create a new repo
> from it. I followed the basic info from
> http://mercurial.selenic.com/wiki/ConvertExtension, and use
>
> hg convert --filemap /tmp/map /path/to/repo/subdir /tmp/subdir-repo
>
> where /tmp/map contains
>
> include subdir
> rename subdir .
>
> It looks like the conversion succeeds. But when I look at the new
> repo, it's missing many files.
>
> What am I doing wrong with the conversion?
You should use:
hg convert --filemap /tmp/map /path/to/repo /tmp/subdir-repo
You are going one level too deep in the main repo path that you are converting.
Regards,
Scott
More information about the Mercurial
mailing list