Mercurial > public > mercurial-scm > hg-stable
diff tests/test-convert-hg-svn @ 10051:a02d43acbc04 stable
convert/svn: make sink recover gracefully from empty changeset
Otherwise when processing a changeset that in fact changes no files
(perhaps due to bug in import from CVS) can get something like:
unexpected svn output:
abort: unable to cope with svn output
Bug report and patch draft by Jesse Glick <jesse.glick@sun.com>
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 07 Dec 2009 12:44:15 -0500 |
parents | 34c4131abdf9 |
children | c52057614c72 |
line wrap: on
line diff
--- a/tests/test-convert-hg-svn Fri Dec 11 15:09:52 2009 +0900 +++ b/tests/test-convert-hg-svn Mon Dec 07 12:44:15 2009 -0500 @@ -9,6 +9,7 @@ echo "[extensions]" >> $HGRCPATH echo "convert = " >> $HGRCPATH +echo "mq = " >> $HGRCPATH svnpath=`pwd | fix_path`/svn-repo svnadmin create $svnpath @@ -59,9 +60,14 @@ echo % new hg rev hg clone $svnpath-hg $svnpath-work -echo b > $svnpath-work/b -hg --cwd $svnpath-work add b -hg --cwd $svnpath-work ci -mb +cd $svnpath-work +echo b > b +hg add b +hg ci -mb +echo '% adding an empty revision' +hg qnew -m emtpy empty +hg qfinish -a +cd .. echo % echo hg to svn hg --cwd $svnpath-hg pull -q $svnpath-work