This is an archive of the discontinued Mercurial Phabricator instance.

localrepo: validate directories before creating any
ClosedPublic

Authored by indygreg on Sep 24 2018, 12:12 PM.

Details

Summary

There is no meaningful change in behavior because wdir would
already exist in the case where we raised RepoError. But I think
the code is easier to read if we do all validation first then
take actions with side-effects.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Sep 24 2018, 12:12 PM
This revision was automatically updated to reflect the committed changes.