# HG changeset patch # User Nat Mote # Date 1431468259 25200 # Node ID 72f7f98bc5e588eb2cd0531de89f07763b28f75b # Parent 263bbed1833ce5e1ec68422a75284b50b7539395 rebase: add short -k option for --keep histedit and strip already have a short option for keep, so this makes the interface more consistent diff -r 263bbed1833c -r 72f7f98bc5e5 hgext/rebase.py --- a/hgext/rebase.py Mon Mar 30 19:51:40 2015 +0900 +++ b/hgext/rebase.py Tue May 12 15:04:19 2015 -0700 @@ -67,7 +67,7 @@ ('e', 'edit', False, _('invoke editor on commit messages')), ('l', 'logfile', '', _('read collapse commit message from file'), _('FILE')), - ('', 'keep', False, _('keep original changesets')), + ('k', 'keep', False, _('keep original changesets')), ('', 'keepbranches', False, _('keep original branch names')), ('D', 'detach', False, _('(DEPRECATED)')), ('i', 'interactive', False, _('(DEPRECATED)')), diff -r 263bbed1833c -r 72f7f98bc5e5 tests/test-rebase-scenario-global.t --- a/tests/test-rebase-scenario-global.t Mon Mar 30 19:51:40 2015 +0900 +++ b/tests/test-rebase-scenario-global.t Tue May 12 15:04:19 2015 -0700 @@ -397,7 +397,7 @@ abort: can't remove original changesets with unrebased descendants (use --keep to keep original changesets) [255] - $ hg rebase -r '2::8' -d 1 --keep + $ hg rebase -r '2::8' -d 1 -k rebasing 2:c9e50f6cdc55 "C" rebasing 3:ffd453c31098 "D" rebasing 6:3d8a618087a7 "G"