Show More
@@ -72,8 +72,8 b' def reposetup(ui, repo):' | |||||
72 | if not isinstance(repo, localrepo.localrepository): |
|
72 | if not isinstance(repo, localrepo.localrepository): | |
73 | return |
|
73 | return | |
74 |
|
74 | |||
|
75 | narrowrepo.wraprepo(repo) | |||
75 | if changegroup.NARROW_REQUIREMENT in repo.requirements: |
|
76 | if changegroup.NARROW_REQUIREMENT in repo.requirements: | |
76 | narrowrepo.wraprepo(repo) |
|
|||
77 | narrowcopies.setup(repo) |
|
77 | narrowcopies.setup(repo) | |
78 | narrowdirstate.setup(repo) |
|
78 | narrowdirstate.setup(repo) | |
79 | narrowpatch.setup(repo) |
|
79 | narrowpatch.setup(repo) |
@@ -30,7 +30,6 b' from mercurial import (' | |||||
30 |
|
30 | |||
31 | from . import ( |
|
31 | from . import ( | |
32 | narrowbundle2, |
|
32 | narrowbundle2, | |
33 | narrowrepo, |
|
|||
34 | ) |
|
33 | ) | |
35 |
|
34 | |||
36 | table = {} |
|
35 | table = {} | |
@@ -101,10 +100,6 b' def clonenarrowcmd(orig, ui, repo, *args' | |||||
101 | '_pullbundle2extraprepare', pullbundle2extraprepare_widen) |
|
100 | '_pullbundle2extraprepare', pullbundle2extraprepare_widen) | |
102 |
|
101 | |||
103 | def pullnarrow(orig, repo, *args, **kwargs): |
|
102 | def pullnarrow(orig, repo, *args, **kwargs): | |
104 | narrowrepo.wraprepo(repo.unfiltered()) |
|
|||
105 | if isinstance(repo, repoview.repoview): |
|
|||
106 | repo.__class__.__bases__ = (repo.__class__.__bases__[0], |
|
|||
107 | repo.unfiltered().__class__) |
|
|||
108 | if opts_narrow: |
|
103 | if opts_narrow: | |
109 | repo.requirements.add(changegroup.NARROW_REQUIREMENT) |
|
104 | repo.requirements.add(changegroup.NARROW_REQUIREMENT) | |
110 | repo._writerequirements() |
|
105 | repo._writerequirements() |
General Comments 0
You need to be logged in to leave comments.
Login now