--similarity option for hg convert ?

Greg Ward greg-hg at gerg.ca
Thu Jul 2 20:00:56 CDT 2009


On Thu, Jul 2, 2009 at 6:37 AM, Philippe De Muyter<phdm at macqel.be> wrote:
> I would like to convert a git repository to hg using 'hg convert'.
>
> Does convert have a --similarity option to detect renamed and moved files,
> like other hg subcommands have ?

You might try using hg-fastimport.  That is, dump your git repo with
git fast-export, then feed the dump to hg-fastimport.  See
FastImportExtension in the wiki for details.

Note: the fastimport extension is still under development (I'm the
perpetrator, err maintainer), and it's a bit of a PITA to get working.
 But if it works, it should have at least two big advantages over 'hg
convert' for git conversions: renames and branch names.  Please give
it a shot and let me know (via this list) how it goes!

Greg


More information about the Mercurial mailing list