This is an archive of the discontinued Mercurial Phabricator instance.

test-remotefilelog-datapack: exercise cdatapack code path
ClosedPublic

Authored by quark on Nov 16 2017, 7:27 PM.
Tags
None
Subscribers

Details

Summary

In fastdatapacktests.testPacksCache, the C datapack code path should be
used.

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

quark created this revision.Nov 16 2017, 7:27 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 16 2017, 7:27 PM
singhsrb accepted this revision.Nov 16 2017, 7:41 PM
singhsrb added a subscriber: singhsrb.

All good! Just a minor comment which you can ignore :).

tests/test-remotefilelog-datapack.py
39

nit: paramsavailable seems weird especially with self.iscdatapack = not paramsavailable. Maybe rename this to something more meaningful. I would even prefer it the other way round i.e.

def __init__(self, datapackreader,  iscdatapack):
        self.datapackreader = datapackreader
        self.iscdatapack = iscdatapack
        self.paramsavailable = not iscdatapack
This revision is now accepted and ready to land.Nov 16 2017, 7:41 PM
durham added a subscriber: durham.Nov 16 2017, 8:38 PM
durham added inline comments.
tests/test-remotefilelog-datapack.py
39

+1

This revision was automatically updated to reflect the committed changes.