# HG changeset patch # User Augie Fackler # Date 1234305112 21600 # Node ID 09d0fe02988d16fcb1939243e1fa70dfed4c33af # Parent fd3e5ff53a31695f86ae0c5e2a8903d12f5da23e tests: Add a test for the behavior of 'hg export -- -2' diff -r fd3e5ff53a31 -r 09d0fe02988d tests/test-export --- 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 diff -r fd3e5ff53a31 -r 09d0fe02988d tests/test-export.out --- 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