Mercurial > hg
comparison hgext/shelve.py @ 20409:0b7a9940a397
shelve: mention walk options in help
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 10 Feb 2014 00:53:25 +0100 |
parents | 3392695abd68 |
children | fc5354648224 |
comparison
equal
deleted
inserted
replaced
20408:3392695abd68 | 20409:0b7a9940a397 |
---|---|
21 shelve". | 21 shelve". |
22 """ | 22 """ |
23 | 23 |
24 from mercurial.i18n import _ | 24 from mercurial.i18n import _ |
25 from mercurial.node import nullid, nullrev, bin, hex | 25 from mercurial.node import nullid, nullrev, bin, hex |
26 from mercurial import changegroup, cmdutil, scmutil, phases | 26 from mercurial import changegroup, cmdutil, scmutil, phases, commands |
27 from mercurial import error, hg, mdiff, merge, patch, repair, util | 27 from mercurial import error, hg, mdiff, merge, patch, repair, util |
28 from mercurial import templatefilters | 28 from mercurial import templatefilters |
29 from mercurial import lock as lockmod | 29 from mercurial import lock as lockmod |
30 from hgext import rebase | 30 from hgext import rebase |
31 import errno | 31 import errno |
629 ('n', 'name', '', | 629 ('n', 'name', '', |
630 _('use the given name for the shelved commit'), _('NAME')), | 630 _('use the given name for the shelved commit'), _('NAME')), |
631 ('p', 'patch', None, | 631 ('p', 'patch', None, |
632 _('show patch')), | 632 _('show patch')), |
633 ('', 'stat', None, | 633 ('', 'stat', None, |
634 _('output diffstat-style summary of changes'))], | 634 _('output diffstat-style summary of changes'))] + commands.walkopts, |
635 _('hg shelve')) | 635 _('hg shelve [OPTION]...')) |
636 def shelvecmd(ui, repo, *pats, **opts): | 636 def shelvecmd(ui, repo, *pats, **opts): |
637 '''save and set aside changes from the working directory | 637 '''save and set aside changes from the working directory |
638 | 638 |
639 Shelving takes files that "hg status" reports as not clean, saves | 639 Shelving takes files that "hg status" reports as not clean, saves |
640 the modifications to a bundle (a shelved change), and reverts the | 640 the modifications to a bundle (a shelved change), and reverts the |