Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 35925:7625b4f7db70
cmdutil: split functions of log-like commands to new module (API)
cmdutil.py is painfully big and makes Emacs slow. Let's split log-related
functions.
% wc -l mercurial/cmdutil.py
4027 mercurial/cmdutil.py
% wc -l mercurial/cmdutil.py mercurial/logcmdutil.py
3141 mercurial/cmdutil.py
933 mercurial/logcmdutil.py
4074 total
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jan 2018 12:26:42 +0900 |
parents | f56f8abbeaf1 |
children | 572f36e9a780 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Fri Feb 02 13:13:46 2018 -0800 +++ b/hgext/largefiles/overrides.py Sun Jan 21 12:26:42 2018 +0900 @@ -19,6 +19,7 @@ cmdutil, error, hg, + logcmdutil, match as matchmod, pathutil, pycompat, @@ -394,14 +395,16 @@ return lambda rev: match oldmatchandpats = installmatchandpatsfn(overridematchandpats) - oldmakelogfilematcher = cmdutil._makenofollowlogfilematcher - setattr(cmdutil, '_makenofollowlogfilematcher', overridemakelogfilematcher) + oldmakelogfilematcher = logcmdutil._makenofollowlogfilematcher + setattr(logcmdutil, '_makenofollowlogfilematcher', + overridemakelogfilematcher) try: return orig(ui, repo, *pats, **opts) finally: restorematchandpatsfn() - setattr(cmdutil, '_makenofollowlogfilematcher', oldmakelogfilematcher) + setattr(logcmdutil, '_makenofollowlogfilematcher', + oldmakelogfilematcher) def overrideverify(orig, ui, repo, *pats, **opts): large = opts.pop(r'large', False)