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