Show More
@@ -208,6 +208,8 b' def archive(repo, dest, node, kind, deco' | |||||
208 | archiver.addfile(name, mode, islink, data) |
|
208 | archiver.addfile(name, mode, islink, data) | |
209 |
|
209 | |||
210 | ctx = repo.changectx(node) |
|
210 | ctx = repo.changectx(node) | |
|
211 | if kind not in archivers: | |||
|
212 | raise util.Abort(_("unknown archive type '%s'" % kind)) | |||
211 | archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) |
|
213 | archiver = archivers[kind](dest, prefix, mtime or ctx.date()[0]) | |
212 | m = ctx.manifest() |
|
214 | m = ctx.manifest() | |
213 | items = m.items() |
|
215 | items = m.items() |
@@ -69,6 +69,8 b' if [ -f rev-0.tar ]; then' | |||||
69 | echo 'rev-0.tar created' |
|
69 | echo 'rev-0.tar created' | |
70 | fi |
|
70 | fi | |
71 |
|
71 | |||
|
72 | hg archive -t bogus test.bogus | |||
|
73 | ||||
72 | echo % server errors |
|
74 | echo % server errors | |
73 | cat errors.log |
|
75 | cat errors.log | |
74 |
|
76 |
@@ -39,6 +39,7 b' test-TIP/bar' | |||||
39 | test-TIP/baz/bletch |
|
39 | test-TIP/baz/bletch | |
40 | test-TIP/foo |
|
40 | test-TIP/foo | |
41 | rev-0.tar created |
|
41 | rev-0.tar created | |
|
42 | abort: unknown archive type 'bogus' | |||
42 | % server errors |
|
43 | % server errors | |
43 | % empty repo |
|
44 | % empty repo | |
44 | abort: repository has no revisions |
|
45 | abort: repository has no revisions |
General Comments 0
You need to be logged in to leave comments.
Login now