amend: add a --branch option
diff --git a/hgext/evolution.py b/hgext/evolution.py
--- a/hgext/evolution.py
+++ b/hgext/evolution.py
@@ -209,7 +209,9 @@ def kill(ui, repo, *revs):
('n', 'note', '',
_('use text as commit message for this update')),
('c', 'change', '',
- _('specifies the changeset to amend'), _('REV'))
+ _('specifies the changeset to amend'), _('REV')),
+ ('b', 'branch', '',
+ _('specifies a branch for the new.'), _('REV')),
] + walkopts + commitopts + commitopts2,
_('[OPTION]... [FILE]...'))
@@ -243,6 +245,9 @@ def amend(ui, repo, *pats, **opts):
if change == '.':
change = 'p1(p1())'
old = scmutil.revsingle(repo, change)
+ branch = opts.get('branch')
+ if branch:
+ opts.setdefault('extra', {})['branch'] = branch
wlock = repo.wlock()
try: