Mercurial > public > mercurial-scm > hg
diff hgext/shelve.py @ 24477:325f03de849d
shelve: add interactive mode command line option
author | Laurent Charignon <lcharignon@fb.com> |
---|---|
date | Wed, 25 Mar 2015 15:52:28 -0700 |
parents | cda18ded2c48 |
children | 95cbc77c0cad |
line wrap: on
line diff
--- a/hgext/shelve.py Wed Mar 25 15:51:57 2015 -0700 +++ b/hgext/shelve.py Wed Mar 25 15:52:28 2015 -0700 @@ -226,6 +226,7 @@ raise util.Abort(_('shelved change names may not contain slashes')) if name.startswith('.'): raise util.Abort(_("shelved change names may not start with '.'")) + interactive = opts.get('interactive', False) node = cmdutil.commit(ui, repo, commitfunc, pats, opts) @@ -649,6 +650,8 @@ _('use the given name for the shelved commit'), _('NAME')), ('p', 'patch', None, _('show patch')), + ('i', 'interactive', None, + _('interactive mode, only works while creating a shelve')), ('', 'stat', None, _('output diffstat-style summary of changes'))] + commands.walkopts, _('hg shelve [OPTION]... [FILE]...'))