Commit Graph

9 Commits

Author SHA1 Message Date
Keshav Kini
89e9168ff4 Remove illegal characters from username/email
Includes a doctest and tests in test-hg/author for the correct behavior.
2012-02-15 09:30:06 +08:00
Ehsan Akhgari
d57f385799 Improve the parsing of author lines from Mercurial to generate committer and author lines that git can correctly understand
Signed-off-by: Ehsan Akhgari <ehsan.akhgari@gmail.com>
---
I found a number of bugs when I was trying to convert Mozila's hg repository
to git using hg-git.  This patch fixes a number of bugs with irregular
author lines present in hg repositories.  Git cannot correctly process a
commit object which has a committer or author line in a format that it does
not understand, which makes it not be able to handle the repositories
with have such commit objects.

The added test cases shows the irregular cases that this patch is able to
deal with.
2011-09-09 16:12:49 -05:00
Augie Fackler
479bebaa1f tests: cope with output format changes in hg 1.8
These test changes should make it easier to see what's still broken in
1.8 and 1.9. Ideally, we'll drop pre-1.8 versions soon and rip most of
this out, but I'm not sure how realistic that is in the short term.
2011-05-15 17:04:05 -05:00
Augie Fackler
12ed874aa4 tests: use run-tests.py's built-in daemon killing
Makes interrupting a test run more graceful and overall less
frustrating.
2011-05-15 12:23:53 -05:00
Augie Fackler
5f31688932 tests: many, many changes so we never push into a checked-out ref 2010-03-25 19:54:00 -05:00
Abderrahim Kitouni
6a70b4397d accept both old and new hg output for clone 2009-11-23 19:28:20 +01:00
Abderrahim Kitouni
c07321597c undo changes from 8b927e612456 (GNU sed doesn't have a -E option) 2009-11-23 18:58:40 +01:00
Augie Fackler
5bccae8cb3 tests: Fix tests with new repo layout.
Also make all tests bail early if dulwich is not available.
2009-10-25 10:52:50 -05:00
Abderrahim Kitouni
d2effa3dff add test for named branches 2009-07-07 10:47:26 +01:00