##// END OF EJS Templates
narrow: pass old includes and excludes to _widen()...
Pulkit Goyal -
r40001:1a4c1a3c default
parent child Browse files
Show More
@@ -248,7 +248,8 b' def _narrow(ui, repo, remote, commoninc,'
248
248
249 repo.destroyed()
249 repo.destroyed()
250
250
251 def _widen(ui, repo, remote, commoninc, newincludes, newexcludes):
251 def _widen(ui, repo, remote, commoninc, oldincludes, oldexcludes,
252 newincludes, newexcludes):
252 newmatch = narrowspec.match(repo.root, newincludes, newexcludes)
253 newmatch = narrowspec.match(repo.root, newincludes, newexcludes)
253
254
254 # for now we assume that if a server has ellipses enabled, we will be
255 # for now we assume that if a server has ellipses enabled, we will be
@@ -433,6 +434,7 b' def trackedcmd(ui, repo, remotepath=None'
433 if widening:
434 if widening:
434 newincludes = oldincludes | addedincludes
435 newincludes = oldincludes | addedincludes
435 newexcludes = oldexcludes - removedexcludes
436 newexcludes = oldexcludes - removedexcludes
436 _widen(ui, repo, remote, commoninc, newincludes, newexcludes)
437 _widen(ui, repo, remote, commoninc, oldincludes, oldexcludes,
438 newincludes, newexcludes)
437
439
438 return 0
440 return 0
General Comments 0
You need to be logged in to leave comments. Login now