Mercurial > public > mercurial-scm > hg
diff hgext/convert/hg.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 | 5ced12cfa41b |
children | b0aa9b0b9c21 |
line wrap: on
line diff
--- a/hgext/convert/hg.py Fri Oct 15 02:44:14 2021 +0200 +++ b/hgext/convert/hg.py Fri Oct 15 03:28:28 2021 +0200 @@ -145,7 +145,7 @@ _(b'pulling from %s into %s\n') % (pbranch, branch) ) exchange.pull( - self.repo, prepo, [prepo.lookup(h) for h in heads] + self.repo, prepo, heads=[prepo.lookup(h) for h in heads] ) self.before()