convert: filemap: How to remap files into a subdir
Patrick Mézard
pmezard at gmail.com
Mon Nov 3 03:58:32 CST 2008
Arne Babenhauserheide a écrit :
> Hi,
>
> I tried to join multiple repositories with the convert extension like the
> following:
>
> hg convert --filemap filemap SOURCE TARGET
>
> with the filemap containing the following:
>
> --- filemap ---
> rename . subdir
> --- /filemap ---
>
> but this didn't work for me.
>
> How can I rename all files in the top-level directory to be located in a
> subdirectory?
With crew:
"""
hg init t
cd t
$ cd t
$ echo a > a
$ hg ci -Am adda
adding a
$ cd ..
$ cat > filemap <<EOF
> rename . subdir
> EOF
$ hg convert --filemap filemap t t2
initializing destination t2 repository
scanning source...
sorting...
converting...
0 adda
$ hg -R t2 manifest -r tip
subdir/a
"""
Which version do you have ?
--
Patrick Mézard
More information about the Mercurial
mailing list