This is an archive of the discontinued Mercurial Phabricator instance.

basepack: make base store's refresh() oblivious to most recent packs
AbandonedPublic

Authored by singhsrb on Oct 23 2017, 4:07 PM.
Tags
None
Subscribers
None

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

D1208 adds a cache which anyways takes care of accessing the most
recent packs. Therefore, it is redundant for the refresh logic to care for the
most recent packs. Furthermore, it also simplifies the refresh code.

Test Plan
  • Ran all the tests.
  • Re-ran the testing with the large repo as in D1208 and verified that the performance was almost similar.

Diff Detail

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

Event Timeline

singhsrb created this revision.Oct 23 2017, 4:07 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 23 2017, 4:07 PM
singhsrb planned changes to this revision.Oct 23 2017, 4:37 PM
singhsrb added inline comments.
remotefilelog/basepack.py
135

Probably can remove filenamewithoutext from fileswithoutext here.

singhsrb updated this revision to Diff 3071.Oct 23 2017, 4:43 PM
singhsrb abandoned this revision.Oct 23 2017, 11:43 PM

This won't be needed after suggested changes in D1208.