Mercurial > hg
comparison hgext/narrow/narrowwirepeer.py @ 36160:9fd8c2a3db5a
narrowspec: move module into core
Having support for parsing the narrow specification in core is
necessary for moving many other parts of narrow to core.
We do still want to harmonize the narrow spec with the sparse
spec. And the format needs to be documented. But this shouldn't
hold up the code moving to core.
Differential Revision: https://phab.mercurial-scm.org/D2201
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 12 Feb 2018 16:21:34 -0800 |
parents | b60c577b6e03 |
children | 87e950a070e6 |
comparison
equal
deleted
inserted
replaced
36159:0fe7e39dc683 | 36160:9fd8c2a3db5a |
---|---|
10 from mercurial.i18n import _ | 10 from mercurial.i18n import _ |
11 from mercurial import ( | 11 from mercurial import ( |
12 error, | 12 error, |
13 extensions, | 13 extensions, |
14 hg, | 14 hg, |
15 narrowspec, | |
15 node, | 16 node, |
16 ) | 17 ) |
17 | |
18 from . import narrowspec | |
19 | 18 |
20 def uisetup(): | 19 def uisetup(): |
21 def peersetup(ui, peer): | 20 def peersetup(ui, peer): |
22 # We must set up the expansion before reposetup below, since it's used | 21 # We must set up the expansion before reposetup below, since it's used |
23 # at clone time before we have a repo. | 22 # at clone time before we have a repo. |