##// END OF EJS Templates
addremove: replace match.bad() monkey patching with match.badmatch()...
Matt Harbison -
r25434:5984dd42 default
parent child Browse files
Show More
@@ -850,15 +850,14 b' def addremove(repo, matcher, prefix, opt'
850 % join(subpath))
850 % join(subpath))
851
851
852 rejected = []
852 rejected = []
853 origbad = m.bad
854 def badfn(f, msg):
853 def badfn(f, msg):
855 if f in m.files():
854 if f in m.files():
856 origbad(f, msg)
855 m.bad(f, msg)
857 rejected.append(f)
856 rejected.append(f)
858
857
859 m.bad = badfn
858 badmatch = matchmod.badmatch(m, badfn)
860 added, unknown, deleted, removed, forgotten = _interestingfiles(repo, m)
859 added, unknown, deleted, removed, forgotten = _interestingfiles(repo,
861 m.bad = origbad
860 badmatch)
862
861
863 unknownset = set(unknown + forgotten)
862 unknownset = set(unknown + forgotten)
864 toprint = unknownset.copy()
863 toprint = unknownset.copy()
General Comments 0
You need to be logged in to leave comments. Login now