changeset 7771:09d0fe02988d

tests: Add a test for the behavior of 'hg export -- -2'
author Augie Fackler <durin42@gmail.com>
date Tue, 10 Feb 2009 16:31:52 -0600
parents fd3e5ff53a31
children 88887054d277
files tests/test-export tests/test-export.out
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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