diff tests/test-convert-git @ 8271:e3d3dad805f9

Add committer tag only when needed in git conversion Convert from a git repo added a committer: tag in the log message even if the committer and the author were the same person.
author Richard Quirk <richard.quirk@gmail.com>
date Fri, 01 May 2009 11:32:19 +0200
parents 5d14b06b1cc1
children 5b7da468531b
line wrap: on
line diff
--- a/tests/test-convert-git	Fri May 01 12:35:13 2009 +0200
+++ b/tests/test-convert-git	Fri May 01 11:32:19 2009 +0200
@@ -148,4 +148,22 @@
 cd git-repo3-hg
 hg up -C
 python -c 'print len(file("b", "rb").read())'
+cd ..
 
+echo
+echo '% test author vs committer'
+mkdir git-repo4
+cd git-repo4
+git init-db >/dev/null 2>/dev/null
+echo >> foo
+git add foo
+commit -a -m addfoo
+echo >> foo
+GIT_AUTHOR_NAME="nottest"
+commit -a -m addfoo2
+cd ..
+
+echo '% convert author committer'
+hg convert git-repo4 git-repo4-hg
+cd git-repo4-hg
+hg log -v