test-convert-svn-source: test convert/multiple extra fields
authorPatrick Mezard <pmezard@gmail.com>
Fri, 04 Jan 2008 23:43:55 +0100
changeset 5804 de8311f7a31b
parent 5803 a8e4a94b0a43
child 5805 e422305e0853
test-convert-svn-source: test convert/multiple extra fields
tests/test-convert-svn-source
tests/test-convert-svn-source.out
--- a/tests/test-convert-svn-source	Fri Jan 04 23:43:49 2008 +0100
+++ b/tests/test-convert-svn-source	Fri Jan 04 23:43:55 2008 +0100
@@ -26,7 +26,7 @@
     svnpath='/'$svnpath
 fi
 
-svnurl=file://$svnpath/svn-repo/trunk
+svnurl=file://$svnpath/svn-repo/trunk/test
 svn import -m init t $svnurl | fix_path
 
 echo % update svn repository
@@ -60,6 +60,10 @@
 
 echo % test stop revision
 hg convert --rev 1 $svnurl stoprev
+# Check convert_revision extra-records.
+# This is also the only place testing more than one extra field
+# in a revision.
+hg --cwd stoprev tip --debug | grep extra | sed 's/=.*/=/'
 
 ########################################
 
--- a/tests/test-convert-svn-source.out	Fri Jan 04 23:43:49 2008 +0100
+++ b/tests/test-convert-svn-source.out	Fri Jan 04 23:43:55 2008 +0100
@@ -11,8 +11,8 @@
 Transmitting file data ..
 Committed revision 2.
 % convert to hg once
-assuming destination trunk-hg
-initializing destination trunk-hg repository
+assuming destination test-hg
+initializing destination test-hg repository
 scanning source...
 sorting...
 converting...
@@ -24,7 +24,7 @@
 Transmitting file data ..
 Committed revision 3.
 % test incremental conversion
-assuming destination trunk-hg
+assuming destination test-hg
 scanning source...
 sorting...
 converting...
@@ -47,6 +47,8 @@
 sorting...
 converting...
 0 init
+extra:       branch=
+extra:       convert_revision=
 # now tests that it works with trunk/branches/tags layout
 
 % initial svn import