This is an archive of the discontinued Mercurial Phabricator instance.

commit: use context manager with dirstateguard
ClosedPublic

Authored by martinvonz on Aug 15 2017, 3:13 AM.

Details

Summary

When I wrote 5ac845ca059a (commit: don't let failed commit with
--addremove update dirstate (issue5645), 2017-07-31), Durham's
609606d21765 (rebase: use one dirstateguard for when using
rebase.singletransaction, 2017-07-20) had not yet landed, so I had to
write it in the old-fashioned way. Now that Durham's patch is in, we
can simplify by using a context manager.

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.Aug 15 2017, 3:13 AM
This revision was automatically updated to reflect the committed changes.