##// END OF EJS Templates
histedit: check mutability of contexts correctly...
Augie Fackler -
r22416:810d3748 default
parent child Browse files
Show More
@@ -751,7 +751,7 b' def between(repo, old, new, keep):'
751 if repo.revs('(%ld) and merge()', ctxs):
751 if repo.revs('(%ld) and merge()', ctxs):
752 raise util.Abort(_('cannot edit history that contains merges'))
752 raise util.Abort(_('cannot edit history that contains merges'))
753 root = ctxs[0] # list is already sorted by repo.set
753 root = ctxs[0] # list is already sorted by repo.set
754 if not root.phase():
754 if not root.mutable():
755 raise util.Abort(_('cannot edit immutable changeset: %s') % root)
755 raise util.Abort(_('cannot edit immutable changeset: %s') % root)
756 return [c.node() for c in ctxs]
756 return [c.node() for c in ctxs]
757
757
General Comments 0
You need to be logged in to leave comments. Login now