topic: fix '{topicidx}' keyword registration for mercurial <= 4.5 stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 12 Oct 2018 15:37:22 +0200
branchstable
changeset 4170 50b8b06be26d
parent 4169 39b144f9fa54
child 4171 e541acefbaa5
child 4175 03c3206f44f3
topic: fix '{topicidx}' keyword registration for mercurial <= 4.5
CHANGELOG
hgext3rd/topic/__init__.py
--- a/CHANGELOG	Fri Oct 12 15:03:29 2018 +0200
+++ b/CHANGELOG	Fri Oct 12 15:37:22 2018 +0200
@@ -9,6 +9,7 @@
   * next, prev: use stack alias s# when relevant
   * rewind: add an undo alias
   * caches: skip warming the stablerange cache on strip in "auto" mode
+  * topic: properly register the '{topicidx}' for mercurial <= 4.5
 
 8.2.1 -- 2018-09-14
 -------------------
--- a/hgext3rd/topic/__init__.py	Fri Oct 12 15:03:29 2018 +0200
+++ b/hgext3rd/topic/__init__.py	Fri Oct 12 15:37:22 2018 +0200
@@ -355,6 +355,7 @@
 
     if not post45template:
         templatekw.keywords['topic'] = topickw
+        templatekw.keywords['topicidx'] = topicidxkw
     # Wrap workingctx extra to return the topic name
     extensions.wrapfunction(context.workingctx, '__init__', wrapinit)
     # Wrap changelog.add to drop empty topic