This is an archive of the discontinued Mercurial Phabricator instance.

fastannotate: mark as wlock safe
ClosedPublic

Authored by quark on Jul 14 2017, 7:05 PM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Commits
rFBHGX1c1959423122: fastannotate: mark as wlock safe
Summary

fastannotate has its own file-level flock implementation and does not need
to use the repo lock.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Jul 14 2017, 7:05 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptJul 14 2017, 7:05 PM
durham accepted this revision.Jul 14 2017, 7:06 PM
durham added a subscriber: durham.
durham added inline comments.
hgext3rd/fastannotate/__init__.py
157

You can add it to the class level variable. Then you can do it in extsetup

localrep.localrepository._wlockfreeprefix.add(...)

This revision is now accepted and ready to land.Jul 14 2017, 7:06 PM
quark updated this revision to Diff 173.Jul 14 2017, 7:11 PM
This revision was automatically updated to reflect the committed changes.