# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1229726911 21600
#      Fri Dec 19 16:48:31 2008 -0600
# Node ID eadcc075967ea3d1d120dc1217937d7c23a733a1
# Parent  5a14a8f3b909aa3b5eb96986d4d7ab607777dff5
archive: fix bogus error message with no working directory

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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:
diff --git a/tests/test-archive.out b/tests/test-archive.out
--- a/tests/test-archive.out
+++ b/tests/test-archive.out
@@ -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