Mercurial > hg
comparison mercurial/bundlerepo.py @ 48241:7d1e60244561
path: keep the path instance in the `pulloperation`
This will allow more pull code to use the path options. Ideally we would modify
the peer API to keep the path instance. However that is much more churn that I
can deal with for my current goal: adjusting a user facing API for a new
feature before we release it in the 6.0 changesets. So I am taking a shortcut
that seems reasonable.
Differential Revision: https://phab.mercurial-scm.org/D11674
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 15 Oct 2021 03:28:28 +0200 |
parents | 53289d02037a |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
48240:607e9322fc89 | 48241:7d1e60244561 |
---|---|
697 { | 697 { |
698 b'namespace': b'phases', | 698 b'namespace': b'phases', |
699 }, | 699 }, |
700 ).result() | 700 ).result() |
701 | 701 |
702 pullop = exchange.pulloperation(bundlerepo, peer, heads=reponodes) | 702 pullop = exchange.pulloperation( |
703 bundlerepo, peer, path=None, heads=reponodes | |
704 ) | |
703 pullop.trmanager = bundletransactionmanager() | 705 pullop.trmanager = bundletransactionmanager() |
704 exchange._pullapplyphases(pullop, remotephases) | 706 exchange._pullapplyphases(pullop, remotephases) |
705 | 707 |
706 def cleanup(): | 708 def cleanup(): |
707 if bundlerepo: | 709 if bundlerepo: |