Mercurial > public > mercurial-scm > hg-stable
diff hgext/rebase.py @ 32353:a580b2d65ded
rebase: make sure merge state is cleaned up for no-op rebases (issue5494)
If a rebase ends up doing a no-op commit, make sure the merge state is still cleaned up.
author | Jeremy Fitzhardinge <jsgf@fb.com> |
---|---|
date | Thu, 18 May 2017 13:18:05 -0700 |
parents | bd872f64a8ba |
children | 3546a771e376 |
line wrap: on
line diff
--- a/hgext/rebase.py Wed May 17 09:43:50 2017 -0700 +++ b/hgext/rebase.py Thu May 18 13:18:05 2017 -0700 @@ -420,6 +420,11 @@ editor=editor, keepbranches=self.keepbranchesf, date=self.date) + if newnode is None: + # If it ended up being a no-op commit, then the normal + # merge state clean-up path doesn't happen, so do it + # here. Fix issue5494 + mergemod.mergestate.clean(repo) else: # Skip commit if we are collapsing repo.dirstate.beginparentchange()