Usage of 'hg convert'
Patrick Mézard
pmezard at gmail.com
Thu Nov 1 19:13:02 UTC 2007
Guido Ostkamp a écrit :
>
> It appears the filemap works with auto-selection or deseletion when there
> are entries. So if your filemap begins with
>
> include something
>
> then this apparently automatically means something like 'exclude *'
> before.
Yes, and more generally if your filemap contains an "include" directive.
> You need to include everything manually from that point on.
> If you begin with
>
> exclude something
>
> then anything before is automatically included.
Everything matched by the exclude is excluded, period.
> I wonder whether a
> mixtures of both works, so if you have
>
> include a
> exclude b
>
> if that would work. Maybe if 'b' is a subset of 'a'?
If it's matched by b then it's excluded.
> And I haven't tried yet whether the entries can have wildcards and if yes,
> if this works as glob or regex. The manual just says 'path/to/file' though
> a bit below it talks about file or all files under a directory. Obviously
> you can define a directory here.
No wildcards, only rooted subpaths (with complete subparts).
Everything I said above was from reading hgext/convert/filemap.py. I agree it really lacks documentation especially about the kind of paths evaluated and how they write for different repository types and operation modes.
--
Patrick Mézard
More information about the Mercurial
mailing list