( )⚙ D1682 unamend: allow unamending if allowunstable is set

This is an archive of the discontinued Mercurial Phabricator instance.

unamend: allow unamending if allowunstable is set
ClosedPublic

Authored by martinvonz on Dec 13 2017, 8:27 PM.

Details

Summary

I don't see why unamend should be disallowed when allowunstable is
set. By switching to rewriteutil.precheck() we fix that and get more
consistent error messages (and some additional ones).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Dec 13 2017, 8:27 PM
This revision was automatically updated to reflect the committed changes.