changeset 22417 | ca854cd4a26a |
parent 22405 | 6f63c47cbb86 |
child 22419 | fdfc9faca273 |
--- a/mercurial/commands.py Tue Aug 19 14:33:01 2014 -0400 +++ b/mercurial/commands.py Tue Aug 19 14:33:31 2014 -0400 @@ -1409,7 +1409,7 @@ raise util.Abort(_('cannot amend with ui.commitsubrepos enabled')) old = repo['.'] - if old.phase() == phases.public: + if not old.mutable(): raise util.Abort(_('cannot amend public changesets')) if len(repo[None].parents()) > 1: raise util.Abort(_('cannot amend while merging'))