##// END OF EJS Templates
log: use an exact matcher for --patch --follow...
Siddharth Agarwal -
r21878:e2530d4a default
parent child Browse files
Show More
@@ -1499,7 +1499,6 b' def _makelogfilematcher(repo, files, fol'
1499 fcache = {}
1499 fcache = {}
1500 fcacheready = [False]
1500 fcacheready = [False]
1501 pctx = repo['.']
1501 pctx = repo['.']
1502 wctx = repo[None]
1503
1502
1504 def populate():
1503 def populate():
1505 for fn in files:
1504 for fn in files:
@@ -1512,7 +1511,7 b' def _makelogfilematcher(repo, files, fol'
1512 # Lazy initialization
1511 # Lazy initialization
1513 fcacheready[0] = True
1512 fcacheready[0] = True
1514 populate()
1513 populate()
1515 return scmutil.match(wctx, fcache.get(rev, []), default='path')
1514 return scmutil.matchfiles(repo, fcache.get(rev, []))
1516
1515
1517 return filematcher
1516 return filematcher
1518
1517
General Comments 0
You need to be logged in to leave comments. Login now