mononoke: fix test-gettreepack.t

Summary:
New parameter depth was added. Mononoke just ignores, which if correct, but can
be less efficient. However test-gettreepack.t was failing because it didn't
supply the parameter. This diff fixes it by sending a big depth to the server

P. S.
Attached task tracks the support of depth parameter on Mononoke server-side

Reviewed By: lukaspiatkowski

Differential Revision: D8712906

fbshipit-source-id: 8246344b3fa39f00eb39f2262b4aa5aa74834be2
This commit is contained in:
Stanislau Hlebik 2018-07-02 05:03:38 -07:00 committed by Facebook Github Bot
parent 680c1b4fbd
commit 18d3345c71

View File

@ -89,7 +89,8 @@ because everything has been already downloaded.
> fallbackpath = treemanifestext.getfallbackpath(repo)
> with repo.connectionpool.get(fallbackpath) as conn:
> remote = conn.peer
> bundle = remote.gettreepack('', [bin(mfnode) for mfnode in opts.get('mfnode')], [], [])
> depth = 100
> bundle = remote.gettreepack('', [bin(mfnode) for mfnode in opts.get('mfnode')], [], [], depth)
> bundle2.processbundle(repo, bundle, None)
> EOF