archive: fix bogus error message with no working directory
authorMatt Mackall <mpm@selenic.com>
Fri, 19 Dec 2008 16:48:31 -0600
changeset 7528 eadcc075967e
parent 7527 5a14a8f3b909
child 7529 0a65a1dd7894
archive: fix bogus error message with no working directory
mercurial/commands.py
tests/test-archive.out
--- a/mercurial/commands.py	Fri Dec 19 16:47:36 2008 -0600
+++ b/mercurial/commands.py	Fri Dec 19 16:48:31 2008 -0600
@@ -156,7 +156,7 @@
 
     ctx = repo[opts.get('rev')]
     if not ctx:
-        raise util.Abort(_('repository has no revisions'))
+        raise util.Abort(_('no working directory: please specify a revision'))
     node = ctx.node()
     dest = cmdutil.make_filename(repo, dest, node)
     if os.path.realpath(dest) == repo.root:
--- a/tests/test-archive.out	Fri Dec 19 16:47:36 2008 -0600
+++ b/tests/test-archive.out	Fri Dec 19 16:48:31 2008 -0600
@@ -60,4 +60,4 @@
 abort: unknown archive type 'bogus'
 % server errors
 % empty repo
-abort: repository has no revisions
+abort: no working directory: please specify a revision