changeset 12:230cf9ee8ae3

Renamed the "-n/--name" option to "-p/--path"
author Franz Glasner <hg@dom66.de>
date Sun, 27 Sep 2015 13:34:06 +0200
parents b68762aad6ff
children c78608f802d4
files extensions/revinfo.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/revinfo.py	Sat Sep 26 06:32:10 2015 +0200
+++ b/extensions/revinfo.py	Sun Sep 27 13:34:06 2015 +0200
@@ -21,7 +21,7 @@
 
 @command("revinfo",
          [("r", "rev", "",  _('revision to handle'), _('REV')),
-          ("n", "name", "default", _('the configured default path'), _('DEFAULTPATH')),
+          ("p", "path", "default", _('the configured default path'), _('SOURCE')),
           ],
          _("hg revinfo [OPTION]... [DEST]"))
 def revinfo(ui, repo, dest=None, **opts):
@@ -33,10 +33,10 @@
     By default, the revision used is the parent of the working
     directory; use -r/--rev to specify a different revision.
 
-    Use -n/--name to specify the named path information from
+    Use -p/--path to specify the named path information from
     :hg:`paths` as the canonical repository location. It will be
-    printed as "path:" item to the output. Disable this by providing
-    an empty DEFAULTPATH.
+    printed as "path" item to the output. Disable this by providing
+    an empty SOURCE.
 
     The printed information is the same as the :hg:`archive` command
     writes into ".hg_archival.txt".
@@ -47,7 +47,7 @@
         raise util.Abort(_('no working directory: please specify a revision'))
 
     msg = archival.buildmetadata(ctx)
-    canonicalpath = opts.get("name")
+    canonicalpath = opts.get("path")
     if canonicalpath:
         for name, path in sorted(ui.paths.iteritems()):
             if name == canonicalpath: