On a dirty PATH, uncommit was working without even setting the config
experimental.uncommitondirtydir to True. Ideally, it should abort
as it does for a dirty dir. This patch makes uncommit to require the
config option experimental.uncommitondirtydir on a dirty PATH.
Original patch to evolve extension authored by Dan Villiom Podlaski Christiansen:
https://bitbucket.org/octobus/evolve-devel/pull-requests/8/bug-5977-uncommit-dirtiness/diff
Could you rename --force to e.g. --allow-dirty-working-copy so it's clearer what's being allowed?