summaryrefslogtreecommitdiff
path: root/tests/test-export.t
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2011-10-01 20:49:36 +0000
committerLorry <lorry@roadtrain.codethink.co.uk>2012-09-27 13:27:51 +0000
commit921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch)
tree3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-export.t
parent9039c805b0a7e36220101323f82735f08a104b37 (diff)
downloadmercurial-tarball-921ced43c48c1d170452a7b251b94cc96ec8dd44.tar.gz
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
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 ..