tests: Add a test for the behavior of 'hg export -- -2'
authorAugie Fackler <durin42@gmail.com>
Tue, 10 Feb 2009 16:31:52 -0600
changeset 7771 09d0fe02988d
parent 7770 fd3e5ff53a31
child 7772 88887054d277
tests: Add a test for the behavior of 'hg export -- -2'
tests/test-export
tests/test-export.out
--- a/tests/test-export	Sun Feb 15 11:14:20 2009 -0600
+++ b/tests/test-export	Tue Feb 10 16:31:52 2009 -0600
@@ -19,3 +19,5 @@
 grep HG export_internal | wc -l | sed -e 's/^ *//'
 echo "# exporting 4 changesets to a file"
 hg export 1 2 3 4 | grep HG | wc -l | sed -e 's/^ *//'
+echo "# exporting revision -2 to a file"
+hg export -- -2
--- a/tests/test-export.out	Sun Feb 15 11:14:20 2009 -0600
+++ b/tests/test-export.out	Tue Feb 10 16:31:52 2009 -0600
@@ -62,3 +62,19 @@
 4
 # exporting 4 changesets to a file
 4
+# exporting revision -2 to a file
+# HG changeset patch
+# User test
+# Date 0 0
+# Node ID 5f17a83f5fbd9414006a5e563eab4c8a00729efd
+# Parent  747d3c68f8ec44bb35816bfcd59aeb50b9654c2f
+foo-10
+
+diff -r 747d3c68f8ec -r 5f17a83f5fbd foo
+--- a/foo	Thu Jan 01 00:00:00 1970 +0000
++++ b/foo	Thu Jan 01 00:00:00 1970 +0000
+@@ -8,3 +8,4 @@
+ foo-7
+ foo-8
+ foo-9
++foo-10