diff extensions/kwarchive.py @ 160:a959c387bf24

Better error messages
author Franz Glasner <hg@dom66.de>
date Tue, 28 Aug 2018 09:35:39 +0200
parents d313b33c9c06
children d23d3d97c106
line wrap: on
line diff
--- a/extensions/kwarchive.py	Mon Aug 27 23:32:28 2018 +0200
+++ b/extensions/kwarchive.py	Tue Aug 28 09:35:39 2018 +0200
@@ -217,7 +217,7 @@
     opts = pycompat.byteskwargs(opts)
     ctx = scmutil.revsingle(repo, opts.get('rev'))
     if not ctx:
-        raise error.Abort(_('no working directory: please specify a revision'))
+        raise error.Abort(_('no Mercurial revision found: please specify a revision'))
     node = ctx.node()
     dest = makefilename_compat(ctx, dest)
     if os.path.realpath(dest) == repo.root:
@@ -322,7 +322,7 @@
     opts = pycompat.byteskwargs(opts)
     ctx = scmutil.revsingle(repo, opts.get('rev'))
     if not ctx:
-        raise error.Abort(_('no working directory: please specify a revision'))
+        raise error.Abort(_('no Mercurial revision found: please specify a revision'))
     node = ctx.node()
 
     prefix = makefilename_compat(ctx, "")
@@ -542,7 +542,7 @@
                 raise error.Abort("path-filter `%s' not implemented"
                                   % path_filter)
         except LookupError:
-            raise error.Abort(_('repository %s not found') % hgpath)
+            raise error.Abort(_("remote repository named `%s' not found") % hgpath)
     else:
         path_uri = repo.root
         if path_filter == "last":
@@ -621,7 +621,7 @@
     # "none" is retained for compatibility reasons and now an alias for "full"
     if uf not in ("person", "user", "email", "full", "none"):
         raise error.Abort(
-            _("user filter must be any of `user', `person' or `email'"))
+            _("user filter must be any of `user', `person', `email' or `none'"))
     return uf