##// END OF EJS Templates
cmdutil: add a hook for making custom non-follow log file matchers...
Siddharth Agarwal -
r22167:d4bc38f6 stable
parent child Browse files
Show More
@@ -1519,6 +1519,10 b' def _makefollowlogfilematcher(repo, file'
1519 1519
1520 1520 return filematcher
1521 1521
1522 def _makenofollowlogfilematcher(repo, pats, opts):
1523 '''hook for extensions to override the filematcher for non-follow cases'''
1524 return None
1525
1522 1526 def _makelogrevset(repo, pats, opts, revs):
1523 1527 """Return (expr, filematcher) where expr is a revset string built
1524 1528 from log options and file patterns or None. If --stat or --patch
@@ -1635,6 +1639,8 b' def _makelogrevset(repo, pats, opts, rev'
1635 1639 filematcher = _makefollowlogfilematcher(repo, match.files(),
1636 1640 followfirst)
1637 1641 else:
1642 filematcher = _makenofollowlogfilematcher(repo, pats, opts)
1643 if filematcher is None:
1638 1644 filematcher = lambda rev: match
1639 1645
1640 1646 expr = []
General Comments 0
You need to be logged in to leave comments. Login now