summaryrefslogtreecommitdiff
path: root/tests/test-export.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-export.t')
-rw-r--r--tests/test-export.t39
1 files changed, 1 insertions, 38 deletions
diff --git a/tests/test-export.t b/tests/test-export.t
index a371f7b..fd039c0 100644
--- a/tests/test-export.t
+++ b/tests/test-export.t
@@ -7,7 +7,7 @@
> hg ci -m "foo-$i"
> done
- $ for out in "%nof%N" "%%%H" "%b-%R" "%h" "%r" "%m"; do
+ $ for out in "%nof%N" "%%%H" "%b-%R" "%h" "%r"; do
> echo
> echo "# foo-$out.patch"
> hg export -v -o "foo-$out.patch" 2:tip
@@ -77,19 +77,6 @@
foo-09.patch
foo-10.patch
foo-11.patch
-
- # foo-%m.patch
- exporting patches:
- foo-foo_2.patch
- foo-foo_3.patch
- foo-foo_4.patch
- foo-foo_5.patch
- foo-foo_6.patch
- foo-foo_7.patch
- foo-foo_8.patch
- foo-foo_9.patch
- foo-foo_10.patch
- foo-foo_11.patch
Exporting 4 changesets to a file:
@@ -121,27 +108,3 @@ Exporting revision -2 to a file:
foo-9
+foo-10
-Checking if only alphanumeric characters are used in the file name (%m option):
-
- $ echo "line" >> foo
- $ hg commit -m " !\"#$%&(,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~"
- $ hg export -v -o %m.patch tip
- exporting patch:
- ____________0123456789_______ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz____.patch
-
-Catch exporting unknown revisions (especially empty revsets, see issue3353)
-
- $ hg export
- abort: export requires at least one changeset
- [255]
- $ hg export ""
- hg: parse error: empty query
- [255]
- $ hg export 999
- abort: unknown revision '999'!
- [255]
- $ hg export "not all()"
- abort: export requires at least one changeset
- [255]
-
- $ cd ..