Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 35424:702e6d2642e7
debugdiscovery: correct and clean up command synopsis
This does a few things:
* Changes "-r" to "--rev", since "-r" is not a valid short form
* Removes non-existent "-l" and "-b" options
* Removes "..." after options, since we don't usually have that
Differential Revision: https://phab.mercurial-scm.org/D1706
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 15 Dec 2017 08:47:28 -0800 |
parents | fed2c040764e |
children | 8251c4c4abdc |
comparison
equal
deleted
inserted
replaced
35423:e54f02ec6a05 | 35424:702e6d2642e7 |
---|---|
738 [('', 'old', None, _('use old-style discovery')), | 738 [('', 'old', None, _('use old-style discovery')), |
739 ('', 'nonheads', None, | 739 ('', 'nonheads', None, |
740 _('use old-style discovery with non-heads included')), | 740 _('use old-style discovery with non-heads included')), |
741 ('', 'rev', [], 'restrict discovery to this set of revs'), | 741 ('', 'rev', [], 'restrict discovery to this set of revs'), |
742 ] + cmdutil.remoteopts, | 742 ] + cmdutil.remoteopts, |
743 _('[-l REV] [-r REV] [-b BRANCH]... [OTHER]')) | 743 _('[--rev REV] [OTHER]')) |
744 def debugdiscovery(ui, repo, remoteurl="default", **opts): | 744 def debugdiscovery(ui, repo, remoteurl="default", **opts): |
745 """runs the changeset discovery protocol in isolation""" | 745 """runs the changeset discovery protocol in isolation""" |
746 opts = pycompat.byteskwargs(opts) | 746 opts = pycompat.byteskwargs(opts) |
747 remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl)) | 747 remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl)) |
748 remote = hg.peer(repo, opts, remoteurl) | 748 remote = hg.peer(repo, opts, remoteurl) |