This is an archive of the discontinued Mercurial Phabricator instance.

debuglock: ignore ENOENT error when unlocking
ClosedPublic

Authored by marmoute on Apr 6 2022, 1:22 PM.

Details

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute created this revision.Apr 6 2022, 1:22 PM
Alphare added a subscriber: Alphare.Apr 7 2022, 4:36 AM
Alphare added inline comments.
mercurial/debugcommands.py
2151

Maybe just use tryunlink? I see it does catch IoError, should it?

marmoute updated this revision to Diff 32878.Apr 8 2022, 11:47 AM
marmoute added inline comments.Apr 8 2022, 11:47 AM
mercurial/debugcommands.py
2151

lets go with tryunlink

Alphare accepted this revision.Apr 12 2022, 4:53 AM
This revision is now accepted and ready to land.Apr 12 2022, 4:53 AM
This revision was automatically updated to reflect the committed changes.