# HG changeset patch # User Pierre-Yves David # Date 1318353761 -7200 # Node ID 23c232a81fbe539bc0843a4c79f01e9b242702f7 # Parent 5111329280f126b46707b7ea3ff7d9f32b30b5c3 amend: add a --branch option diff -r 5111329280f1 -r 23c232a81fbe hgext/evolution.py --- a/hgext/evolution.py Thu Sep 29 15:23:56 2011 +0200 +++ b/hgext/evolution.py Tue Oct 11 19:22:41 2011 +0200 @@ -209,7 +209,9 @@ ('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 @@ 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: