unshelve: add -k as short form of --keep
authorSiddharth Agarwal <sid0@fb.com>
Wed, 18 Nov 2015 15:04:03 -0800
changeset 27019 5cf184398ee7
parent 27018 e5be48dd8215
child 27020 cc2049184ece
unshelve: add -k as short form of --keep For parity with strip -k, rebase -k, etc.
hgext/shelve.py
tests/test-shelve.t
--- a/hgext/shelve.py	Sun Nov 01 13:55:21 2015 +0900
+++ b/hgext/shelve.py	Wed Nov 18 15:04:03 2015 -0800
@@ -572,7 +572,7 @@
            _('abort an incomplete unshelve operation')),
           ('c', 'continue', None,
            _('continue an incomplete unshelve operation')),
-          ('', 'keep', None,
+          ('k', 'keep', None,
            _('keep shelve after unshelving')),
           ('', 'date', '',
            _('set date for temporary commits (DEPRECATED)'), _('DATE'))],
--- a/tests/test-shelve.t	Sun Nov 01 13:55:21 2015 +0900
+++ b/tests/test-shelve.t	Wed Nov 18 15:04:03 2015 -0800
@@ -493,7 +493,7 @@
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   $ hg shelve --list
   default         (*)    changes to 'create conflict' (glob)
-  $ hg unshelve --keep
+  $ hg unshelve -k
   unshelving change 'default'
   $ hg shelve --list
   default         (*)    changes to 'create conflict' (glob)