sfink avatar sfink committed fd72c5c

Use the right help messages for qcrefresh

Comments (0)

Files changed (1)

crecord/__init__.py

 
 
 def qcrefresh(ui, repo, *pats, **opts):
-    '''interactively update the current patch
+    """interactively update the current patch
+
+    If any file patterns are provided, the refreshed patch will
+    contain only the modifications that match those patterns; the
+    remaining modifications will remain in the working directory.
+
+    If -s/--short is specified, files currently included in the patch
+    will be refreshed just like matched files and remain in the patch.
+
+    hg add/remove/copy/rename work as usual, though you might want to
+    use git-style patches (-g/--git or [diff] git=1) to track copies
+    and renames. See the diffs help topic for more information on the
+    git diff format.
 
     See :hg:`help qrefresh` & :hg:`help crecord` for more information and
     usage.
-    '''
+    """
 
     # Note: if the record operation (or subsequent refresh) fails partway
     # through, the top applied patch will be emptied and the working directory
     "qcrefresh":
         (qcrefresh,
 
-         # sample options as qrefresh
+         # same options as qrefresh
          mq.cmdtable[qrefresh][1],
 
-         _('hg qcrecord [OPTION]... PATCH [FILE]...')),
+         _('hg qcrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...')),
     }
 
     cmdtable.update(qcmdtable)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.