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 |