comparison hgext/shelve.py @ 38714:abcf500d527c

shelve: improve help text for --patch and --stat It's not currently obvious why "hg shelve -p" fails, since -p doesn't take an argument. Differential Revision: https://phab.mercurial-scm.org/D3949
author Danny Hooper <hooper@google.com>
date Fri, 13 Jul 2018 13:48:56 -0700
parents 9b077e5fa8ba
children 905b66681004
comparison
equal deleted inserted replaced
38713:27391d74aaa2 38714:abcf500d527c
1009 ('m', 'message', '', 1009 ('m', 'message', '',
1010 _('use text as shelve message'), _('TEXT')), 1010 _('use text as shelve message'), _('TEXT')),
1011 ('n', 'name', '', 1011 ('n', 'name', '',
1012 _('use the given name for the shelved commit'), _('NAME')), 1012 _('use the given name for the shelved commit'), _('NAME')),
1013 ('p', 'patch', None, 1013 ('p', 'patch', None,
1014 _('show patch')), 1014 _('output patches for changes (provide the names of the shelved '
1015 'changes as positional arguments)')),
1015 ('i', 'interactive', None, 1016 ('i', 'interactive', None,
1016 _('interactive mode, only works while creating a shelve')), 1017 _('interactive mode, only works while creating a shelve')),
1017 ('', 'stat', None, 1018 ('', 'stat', None,
1018 _('output diffstat-style summary of changes'))] + cmdutil.walkopts, 1019 _('output diffstat-style summary of changes (provide the names of '
1020 'the shelved changes as positional arguments)')
1021 )] + cmdutil.walkopts,
1019 _('hg shelve [OPTION]... [FILE]...')) 1022 _('hg shelve [OPTION]... [FILE]...'))
1020 def shelvecmd(ui, repo, *pats, **opts): 1023 def shelvecmd(ui, repo, *pats, **opts):
1021 '''save and set aside changes from the working directory 1024 '''save and set aside changes from the working directory
1022 1025
1023 Shelving takes files that "hg status" reports as not clean, saves 1026 Shelving takes files that "hg status" reports as not clean, saves