This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: make sure metacache is always initalized
ClosedPublic

Authored by wlis on Nov 28 2017, 8:17 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGXc5cf0dda2c9f: remotefilelog: make sure metacache is always initalized
Summary

This adds initialization of metacache in remaining place where it can be uninitalized when using threads
The previous state did fail on some hg update operations on Windows. It didn't
affect posix as that doesn't actually use threads so we always have metacache
initalized from the constructor

Test Plan

Run hg update that failed wihtout this change on windows and see it
suceed.
run tests on CentOS

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

wlis created this revision.Nov 28 2017, 8:17 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 28 2017, 8:17 PM
quark accepted this revision.Nov 28 2017, 8:26 PM
quark added a subscriber: quark.
quark added inline comments.
remotefilelog/contentstore.py
144–145

Maybe this line could be removed then for consistency.

This revision is now accepted and ready to land.Nov 28 2017, 8:26 PM
wlis updated this revision to Diff 3954.Nov 28 2017, 8:41 PM
This revision was automatically updated to reflect the committed changes.