diff mercurial/commands.py @ 7528:eadcc075967e

archive: fix bogus error message with no working directory
author Matt Mackall <mpm@selenic.com>
date Fri, 19 Dec 2008 16:48:31 -0600
parents 5a14a8f3b909
children 3773e510d433
line wrap: on
line diff
--- 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: