Mercurial > hg
diff hgext/largefiles/overrides.py @ 35887:572f36e9a780
logcmdutil: drop redundant "log" from function names (API)
A few exceptions:
- s/loglimit/getlimit/ to avoid name conflict
- s/_logrevs/_initialrevs/ to clarify its functionality
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jan 2018 12:48:39 +0900 |
parents | 7625b4f7db70 |
children | f8ad57d24252 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Sun Jan 21 12:36:43 2018 +0900 +++ b/hgext/largefiles/overrides.py Sun Jan 21 12:48:39 2018 +0900 @@ -389,22 +389,20 @@ # (2) to determine what files to print out diffs for. # The magic matchandpats override should be used for case (1) but not for # case (2). - def overridemakelogfilematcher(repo, pats, opts, badfn=None): + def overridemakefilematcher(repo, pats, opts, badfn=None): wctx = repo[None] match, pats = oldmatchandpats(wctx, pats, opts, badfn=badfn) return lambda rev: match oldmatchandpats = installmatchandpatsfn(overridematchandpats) - oldmakelogfilematcher = logcmdutil._makenofollowlogfilematcher - setattr(logcmdutil, '_makenofollowlogfilematcher', - overridemakelogfilematcher) + oldmakefilematcher = logcmdutil._makenofollowfilematcher + setattr(logcmdutil, '_makenofollowfilematcher', overridemakefilematcher) try: return orig(ui, repo, *pats, **opts) finally: restorematchandpatsfn() - setattr(logcmdutil, '_makenofollowlogfilematcher', - oldmakelogfilematcher) + setattr(logcmdutil, '_makenofollowfilematcher', oldmakefilematcher) def overrideverify(orig, ui, repo, *pats, **opts): large = opts.pop(r'large', False)