Mercurial > evolve
diff hgext/evolution.py @ 131:3124889cad55
keep branch on amend
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 23 Jan 2012 18:22:10 +0100 |
parents | b70fadbccc2a |
children |
line wrap: on
line diff
--- a/hgext/evolution.py Wed Jan 11 17:01:06 2012 +0100 +++ b/hgext/evolution.py Mon Jan 23 18:22:10 2012 +0100 @@ -307,6 +307,9 @@ branch = opts.get('branch') if branch: opts.setdefault('extra', {})['branch'] = branch + else: + if old.branch() != 'default': + opts.setdefault('extra', {})['branch'] = old.branch() lock = repo.lock() try: