[PATCH 1 of 2] tests: Add a test for the behavior of 'hg export -- -2'

Augie Fackler durin42 at gmail.com
Tue Feb 10 17:23:20 CST 2009


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1234305112 21600
# Node ID cb122aee1bf08a5b738bd72f469255adb00d1760
# Parent  b034161948959e36879bf96f29553b5a274e58a2
tests: Add a test for the behavior of 'hg export -- -2'

diff --git a/tests/test-export b/tests/test-export
--- a/tests/test-export
+++ b/tests/test-export
@@ -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
diff --git a/tests/test-export.out b/tests/test-export.out
--- a/tests/test-export.out
+++ b/tests/test-export.out
@@ -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


More information about the Mercurial-devel mailing list