This is an archive of the discontinued Mercurial Phabricator instance.

commit: move dirstateguard creation out of try-block
ClosedPublic

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

Details

Summary

This is just a simple refactoring to make the next patch simpler. If
the dirstateguard constructor raises an exception, the finally-block
won't do anything anyway, so this is functionally equivalent (and
there is no except-block).

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Aug 15 2017, 3:13 AM
This revision was automatically updated to reflect the committed changes.