comparison hgext/largefiles/overrides.py @ 36002:f8ad57d24252

log: pass ctx to makefilematcher() and makehunksfilter() functions This isn't important, but seems more consistent as changesetprinter.show() takes a ctx, not a revision number.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Jan 2018 13:40:31 +0900
parents 572f36e9a780
children 976e1cfb2f64
comparison
equal deleted inserted replaced
36000:91aac8e6604d 36002:f8ad57d24252
390 # The magic matchandpats override should be used for case (1) but not for 390 # The magic matchandpats override should be used for case (1) but not for
391 # case (2). 391 # case (2).
392 def overridemakefilematcher(repo, pats, opts, badfn=None): 392 def overridemakefilematcher(repo, pats, opts, badfn=None):
393 wctx = repo[None] 393 wctx = repo[None]
394 match, pats = oldmatchandpats(wctx, pats, opts, badfn=badfn) 394 match, pats = oldmatchandpats(wctx, pats, opts, badfn=badfn)
395 return lambda rev: match 395 return lambda ctx: match
396 396
397 oldmatchandpats = installmatchandpatsfn(overridematchandpats) 397 oldmatchandpats = installmatchandpatsfn(overridematchandpats)
398 oldmakefilematcher = logcmdutil._makenofollowfilematcher 398 oldmakefilematcher = logcmdutil._makenofollowfilematcher
399 setattr(logcmdutil, '_makenofollowfilematcher', overridemakefilematcher) 399 setattr(logcmdutil, '_makenofollowfilematcher', overridemakefilematcher)
400 400