Summary:
Upstream has added a new match argument to manifest.diff() and removed the
existing manifest.matches() function, so we need to update our internal usage.
A separate diff will update treemanifest to support the new diff() api.
Test Plan:
Ran the tests, some still fail because of the upstream changes, but
future patches fix those.
Reviewers: #mercurial
Differential Revision: https://phabricator.intern.facebook.com/D4677002
Summary: Most of them are pretty simple and don't need to be standalone functions.
Test Plan:
```
[andromeda]:~/work/mercurial/facebook-hg-rpms/fb-hgext:ae2ccaa> make local
<snipped>
[andromeda]:~/work/mercurial/facebook-hg-rpms/fb-hgext:ae2ccaa> cd tests/
[andromeda]:~/work/mercurial/facebook-hg-rpms/fb-hgext/tests:ae2ccaa> PYTHONPATH=~/work/mercurial/facebook-hg-rpms/remotenames/:~/work/mercurial/facebook-hg-rpms/mutable-history/hgext python ~/work/mercurial/facebook-hg-rpms/hg-crew/tests/run-tests.py -j32 test-fastmanifest*.{py,t}
.........
# Ran 9 tests, 0 skipped, 0 warned, 0 failed.
[andromeda]:~/work/mercurial/facebook-hg-rpms/fb-hgext/tests:ae2ccaa>
```
Reviewers: #fastmanifest, durham
Reviewed By: durham
Subscribers: durham, mjpieters, mitrandir
Differential Revision: https://phabricator.intern.facebook.com/D3659242
Signature: t1:3659242:1470340089:e1a569ce05bc3d40af043369b7bc4c76616f5b88
Summary: This is actually, strictly speaking, an upper bound. This is because we haven't gone and done the work of compacting the tree. Since the tree may have undergone deletions, the directory nodes may be oversized.
Test Plan: used in later diff.
Reviewers: lcharignon, durham
Reviewed By: durham
Subscribers: mitrandir, mjpieters, quark
Differential Revision: https://phabricator.intern.facebook.com/D3538944
Signature: t1:3538944:1468268102:45f2cbaa3dc156352ff3f71d0c53393f2445813a
Summary: @quark suggested it in D3519183. It does not work in both places because the other is not an immediate return.
Test Plan: make local && pass fastmanifest unit tests
Reviewers: lcharignon, quark
Reviewed By: quark
Subscribers: mitrandir, mjpieters, quark
Differential Revision: https://phabricator.intern.facebook.com/D3530652
Signature: t1:3530652:1467927107:99c9aeb6b873ab3cdca974f526c3984f4256e201