##// END OF EJS Templates
narrow: replace filtering in list comprehension by set operations...
Martin von Zweigbergk -
r40465:5d8f2914 default
parent child Browse files
Show More
@@ -400,10 +400,10 b' def trackedcmd(ui, repo, remotepath=None'
400
400
401 # filter the user passed additions and deletions into actual additions and
401 # filter the user passed additions and deletions into actual additions and
402 # deletions of excludes and includes
402 # deletions of excludes and includes
403 addedincludes = set([i for i in addedincludes if i not in oldincludes])
403 addedincludes -= oldincludes
404 removedincludes = set([i for i in removedincludes if i in oldincludes])
404 removedincludes &= oldincludes
405 addedexcludes = set([i for i in addedexcludes if i not in oldexcludes])
405 addedexcludes -= oldexcludes
406 removedexcludes = set([i for i in removedexcludes if i in oldexcludes])
406 removedexcludes &= oldexcludes
407
407
408 widening = addedincludes or removedexcludes
408 widening = addedincludes or removedexcludes
409 narrowing = removedincludes or addedexcludes
409 narrowing = removedincludes or addedexcludes
General Comments 0
You need to be logged in to leave comments. Login now