This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: keepset tuple bug fix
ClosedPublic

Authored by ms2316 on Aug 25 2017, 11:02 AM.
Tags
None
Subscribers

Details

Reviewers
simonfar
durham
ryanmce
Group Reviewers
Restricted Project
Commits
rFBHGX72fc021bb146: remotefilelog: keepset tuple bug fix
Summary

Keepset computation algorithm added tuples to the keepset that are the results
of diffs between two manifests. Now it has been fixed and only new node from
the tuple is added to the keepset.

Test Plan
  • Run hg gc on www, fbsource
  • Ensure the unit tests pass

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

ms2316 created this revision.Aug 25 2017, 11:02 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 25 2017, 11:02 AM
ryanmce requested changes to this revision.Aug 25 2017, 11:05 AM
ryanmce added a subscriber: ryanmce.

This needs a test to prevent regressions.

This revision now requires changes to proceed.Aug 25 2017, 11:05 AM
ms2316 edited edge metadata.Aug 25 2017, 12:45 PM
ms2316 updated this revision to Diff 1295.

Added a test case that ensures that when keepkeys are populated from a diff between two manifests, nothing breaks. Also ensures that when keepkeys are populated
from manifest deltas nothing breaks as well.

ryanmce requested changes to this revision.Aug 25 2017, 12:47 PM

Sweet, thanks for the test case. I don't think we should be setting PYTHONPATH though?

tests/test-remotefilelog-keepset.t
2

This looks sketchy... why are you doing it?

This revision now requires changes to proceed.Aug 25 2017, 12:47 PM
ryanmce accepted this revision.Aug 25 2017, 12:54 PM

Ah, it's used in other tests. Maybe @durham knows why? Go ahead and land it.

This revision is now accepted and ready to land.Aug 25 2017, 12:54 PM
This revision was automatically updated to reflect the committed changes.