mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
tests: Add a test for the behavior of 'hg export -- -2'
This commit is contained in:
parent
f1e34ebcb9
commit
0dd0e4f46d
@ -19,3 +19,5 @@ hg export -o export_internal 1 2 3 4
|
||||
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
|
||||
|
@ -62,3 +62,19 @@ foo-11.patch
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user