Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.py @ 37953:7fae76c2c564
hgweb: reuse graph node-related functions from templates
The difference between templatekw.getgraphnode() and webutil.getgraphnode() is
that the latter is not limited to 1 character.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 08 May 2018 19:00:01 +0800 |
parents | 3b3d818bde8b |
children | ec03f3aa2d14 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Tue May 08 17:54:57 2018 +0800 +++ b/mercurial/hgweb/webutil.py Tue May 08 19:00:01 2018 +0800 @@ -733,3 +733,7 @@ repo.ui.warn(_("websub: invalid regexp for %s: %s\n") % (key, regexp)) return websubtable + +def getgraphnode(repo, ctx): + return (templatekw.getgraphnodecurrent(repo, ctx) + + templatekw.getgraphnodesymbol(ctx))