392 wctx = repo[None] |
393 wctx = repo[None] |
393 match, pats = oldmatchandpats(wctx, pats, opts, badfn=badfn) |
394 match, pats = oldmatchandpats(wctx, pats, opts, badfn=badfn) |
394 return lambda rev: match |
395 return lambda rev: match |
395 |
396 |
396 oldmatchandpats = installmatchandpatsfn(overridematchandpats) |
397 oldmatchandpats = installmatchandpatsfn(overridematchandpats) |
397 oldmakelogfilematcher = cmdutil._makenofollowlogfilematcher |
398 oldmakelogfilematcher = logcmdutil._makenofollowlogfilematcher |
398 setattr(cmdutil, '_makenofollowlogfilematcher', overridemakelogfilematcher) |
399 setattr(logcmdutil, '_makenofollowlogfilematcher', |
|
400 overridemakelogfilematcher) |
399 |
401 |
400 try: |
402 try: |
401 return orig(ui, repo, *pats, **opts) |
403 return orig(ui, repo, *pats, **opts) |
402 finally: |
404 finally: |
403 restorematchandpatsfn() |
405 restorematchandpatsfn() |
404 setattr(cmdutil, '_makenofollowlogfilematcher', oldmakelogfilematcher) |
406 setattr(logcmdutil, '_makenofollowlogfilematcher', |
|
407 oldmakelogfilematcher) |
405 |
408 |
406 def overrideverify(orig, ui, repo, *pats, **opts): |
409 def overrideverify(orig, ui, repo, *pats, **opts): |
407 large = opts.pop(r'large', False) |
410 large = opts.pop(r'large', False) |
408 all = opts.pop(r'lfa', False) |
411 all = opts.pop(r'lfa', False) |
409 contents = opts.pop(r'lfc', False) |
412 contents = opts.pop(r'lfc', False) |