##// END OF EJS Templates
narrow: don't wrap exchange.pull() during clone...
Gregory Szorc -
r39590:841c82d1 default
parent child Browse files
Show More
@@ -112,16 +112,7 b' def clonenarrowcmd(orig, ui, repo, *args'
112 wrappedextraprepare = extensions.wrappedfunction(exchange,
112 wrappedextraprepare = extensions.wrappedfunction(exchange,
113 '_pullbundle2extraprepare', pullbundle2extraprepare_widen)
113 '_pullbundle2extraprepare', pullbundle2extraprepare_widen)
114
114
115 def pullnarrow(orig, repo, *args, **kwargs):
115 with wrappedextraprepare:
116 if opts['narrow']:
117 repo.requirements.add(repository.NARROW_REQUIREMENT)
118 repo._writerequirements()
119
120 return orig(repo, *args, **kwargs)
121
122 wrappedpull = extensions.wrappedfunction(exchange, 'pull', pullnarrow)
123
124 with wrappedextraprepare, wrappedpull:
125 return orig(ui, repo, *args, **pycompat.strkwargs(opts))
116 return orig(ui, repo, *args, **pycompat.strkwargs(opts))
126
117
127 def pullnarrowcmd(orig, ui, repo, *args, **opts):
118 def pullnarrowcmd(orig, ui, repo, *args, **opts):
General Comments 0
You need to be logged in to leave comments. Login now