# HG changeset patch # User Augie Fackler # Date 2014-08-19 18:33:01 # Node ID 810d37485e853f89fed7110a2027bdf71b3e8560 # Parent 65ec6c5c0fb36fc8f9514fd9dcd5da392cce4576 histedit: check mutability of contexts correctly The right way to check if a context is mutable is to call .mutable(), not to compare .phase() with public. diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -751,7 +751,7 @@ def between(repo, old, new, keep): if repo.revs('(%ld) and merge()', ctxs): raise util.Abort(_('cannot edit history that contains merges')) root = ctxs[0] # list is already sorted by repo.set - if not root.phase(): + if not root.mutable(): raise util.Abort(_('cannot edit immutable changeset: %s') % root) return [c.node() for c in ctxs]