# HG changeset patch # User Matt Mackall # Date 2008-12-19 22:48:31 # 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 @@ def archive(ui, repo, dest, **opts): 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 @@ rev-0.tar created abort: unknown archive type 'bogus' % server errors % empty repo -abort: repository has no revisions +abort: no working directory: please specify a revision