Mercurial > hg-stable
changeset 42011:22278dae287c
shelve: new keep option
Does nothing yet. The docstring describes what it will soon be doing.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 22 Mar 2019 11:24:23 -0400 |
parents | db26dbbee74d |
children | 9b78bbb76111 |
files | hgext/shelve.py tests/test-shelve.t |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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