##// END OF EJS Templates
archive: fix bogus error message with no working directory
Matt Mackall -
r7528:eadcc075 default
parent child Browse files
Show More
@@ -156,7 +156,7 b' def archive(ui, repo, dest, **opts):'
156
156
157 ctx = repo[opts.get('rev')]
157 ctx = repo[opts.get('rev')]
158 if not ctx:
158 if not ctx:
159 raise util.Abort(_('repository has no revisions'))
159 raise util.Abort(_('no working directory: please specify a revision'))
160 node = ctx.node()
160 node = ctx.node()
161 dest = cmdutil.make_filename(repo, dest, node)
161 dest = cmdutil.make_filename(repo, dest, node)
162 if os.path.realpath(dest) == repo.root:
162 if os.path.realpath(dest) == repo.root:
@@ -60,4 +60,4 b' rev-0.tar created'
60 abort: unknown archive type 'bogus'
60 abort: unknown archive type 'bogus'
61 % server errors
61 % server errors
62 % empty repo
62 % empty repo
63 abort: repository has no revisions
63 abort: no working directory: please specify a revision
General Comments 0
You need to be logged in to leave comments. Login now