Commit Graph

8 Commits

Author SHA1 Message Date
Johannes Schindelin
f82fbd8f9d remote-hg: handle another funny author line from http://scelenic.com/hg
In this case: David Soria Parra <dsp <at> php.net>.

With this last of three Postel patches, remote-hg can import the
Mercurial repository completely.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2012-05-20 17:45:48 -06:00
Johannes Schindelin
318ea03419 remote-hg: another case of Postel's law
This change allows invalid input from Mercurial repositories where the
author is recorded as 'Name <email@blah' (missing the closing '>').

With this change, importing http://scelenic.com/hg itself no longer fails
with:

	fatal: Missing > in ident string: Benoit Boissinot
	<benoit.boissinot@ens-lyon.org <none@none> 1129685868 -0700

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2012-05-20 17:45:47 -06:00
Johannes Schindelin
075d843998 remote-hg: Postel's law dictates we should handle Author<author@mail>
We should handle a missing space before the email part of an author ident
gracefully. See for example the icedtea6 repository.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2012-05-20 17:45:47 -06:00
Michael J Gruber
dfb3fc514a remote-hg: adjust to hg 1.9
hg 1.0 changed the signature of hg.clone(). Adjust to it.

A real fix would need to check the hg version or try/catch.
2012-05-20 17:45:46 -06:00
Sverre Rabbelier
5d3d6d57a6 git-remote-hg: add GitExporter/GitImporter/NonLocalGit
This is inftrastructure required to implement git-remote-hg.
2012-05-20 17:45:46 -06:00
Sverre Rabbelier
ab21e0e213 git-remote-hg: add hgexport, an hg-fast-export equivalent
This class will be used by git-remote-hg to do the heavy lifting.
2012-05-20 17:45:46 -06:00
Sverre Rabbelier
1753732ec5 git-remote-hg: add GitHg, a helper class for converting hg commits to git
This class will be used by HgExport.
2012-05-20 17:45:45 -06:00
Sverre Rabbelier
0f0485c3fb git-remote-hg: add hgimport, an hg-fast-import equivalent
This class will be used by git-remote-hg to do the heavy lifting.
2012-05-20 17:45:45 -06:00