This is an archive of the discontinued Mercurial Phabricator instance.

uncommit: add an experimental.uncommitondirtywdir config
ClosedPublic

Authored by pulkit on Sep 19 2017, 5:11 PM.

Details

Summary

There are people who wants to do hg uncommit on dirty working directory, so
this patch adds a config which can be used to the achieve that.

Adds tests for the same.

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

pulkit created this revision.Sep 19 2017, 5:11 PM
durin42 accepted this revision.Sep 20 2017, 11:57 AM
This revision is now accepted and ready to land.Sep 20 2017, 11:57 AM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Sep 22 2017, 9:15 AM
yuja added inline comments.
hgext/uncommit.py
158

Perhaps we should test this case, dirtyuncommit & merge.