Mercurial > hg > trac > jungle > src > mercurial-plugin
changeset 19:fd35822c53db 1.0
Add support for grafted changesets
author | cboos |
---|---|
date | Mon, 17 Sep 2012 21:08:57 +0200 |
parents | 985671b91ce4 |
children | 8cc46e18ee69 |
files | tracext/hg/backend.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tracext/hg/backend.py Mon Sep 17 21:08:25 2012 +0200 +++ b/tracext/hg/backend.py Mon Sep 17 21:08:57 2012 +0200 @@ -193,10 +193,13 @@ def match_property(self, name, mode): return (name.startswith('hg-') and name[3:] in ('Parents', 'Children', 'Tags', 'Branch', - 'Bookmarks') and + 'Bookmarks', 'source') and mode == 'revprop') and 4 or 0 def render_property(self, name, mode, context, props): + if name == 'hg-source': + repos, value = props[name] + return render_source_prop(repos, context, _("Graft:"), value) return RenderedProperty(name=gettext(name[3:] + ':'), name_attributes=[("class", "property")], content=self._render_property(name, mode, context, props))