shelve: new keep option
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Fri, 22 Mar 2019 11:24:23 -0400
changeset 42011 22278dae287c
parent 42010 db26dbbee74d
child 42012 9b78bbb76111
shelve: new keep option Does nothing yet. The docstring describes what it will soon be doing.
hgext/shelve.py
tests/test-shelve.t
--- a/hgext/shelve.py	Thu Mar 21 21:40:22 2019 -0400
+++ b/hgext/shelve.py	Fri Mar 22 11:24:23 2019 -0400
@@ -1055,6 +1055,8 @@
            _('delete the named shelved change(s)')),
           ('e', 'edit', False,
            _('invoke editor on commit messages')),
+          ('k', 'keep', False,
+           _('shelve, but keep changes in the working directory')),
           ('l', 'list', None,
            _('list current shelves')),
           ('m', 'message', '',
--- a/tests/test-shelve.t	Thu Mar 21 21:40:22 2019 -0400
+++ b/tests/test-shelve.t	Fri Mar 22 11:24:23 2019 -0400
@@ -76,6 +76,7 @@
       --date DATE           shelve with the specified commit date
    -d --delete              delete the named shelved change(s)
    -e --edit                invoke editor on commit messages
+   -k --keep                shelve, but keep changes in the working directory
    -l --list                list current shelves
    -m --message TEXT        use text as shelve message
    -n --name NAME           use the given name for the shelved commit