[PATCH 2 of 2] rebase: add a "D" short option for detach

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Dec 27 14:19:18 CST 2011


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1325016729 -3600
# Node ID 58481122b6eb93e9b98a554e9e6c1dc6397872ef
# Parent  1a93263a0a2e52016da3b22c735fdcd15388ce3a
rebase: add a "D" short option for detach

Detach is usually what I want when I use --source or (in particular) --rev.
Having a shorter option make it less an hassle to use it.

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -47,7 +47,7 @@
      _('read collapse commit message from file'), _('FILE')),
     ('', 'keep', False, _('keep original changesets')),
     ('', 'keepbranches', False, _('keep original branch names')),
-    ('', 'detach', False, _('force detaching of source from its original '
+    ('D', 'detach', False, _('force detaching of source from its original '
                             'branch')),
     ('t', 'tool', '', _('specify merge tool')),
     ('c', 'continue', False, _('continue an interrupted rebase')),


More information about the Mercurial-devel mailing list