Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 32922:582080a4a812
dagop: move blockancestors() and blockdescendants() from context
context.py seems not a good place to host these functions.
% wc -l mercurial/context.py mercurial/dagop.py
2306 mercurial/context.py
424 mercurial/dagop.py
2730 total
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 19 Feb 2017 19:37:14 +0900 |
parents | 1b90036f42f0 |
children | 1c97df5e3b46 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Oct 16 18:03:24 2016 +0900 +++ b/mercurial/hgweb/webcommands.py Sun Feb 19 19:37:14 2017 +0900 @@ -28,7 +28,7 @@ from .. import ( archival, - context, + dagop, encoding, error, graphmod, @@ -1013,9 +1013,9 @@ # would required a dedicated "revnav" class nav = None if descend: - it = context.blockdescendants(fctx, *lrange) + it = dagop.blockdescendants(fctx, *lrange) else: - it = context.blockancestors(fctx, *lrange) + it = dagop.blockancestors(fctx, *lrange) for i, (c, lr) in enumerate(it, 1): diffs = None if patch: