next: use the utility to retrieve the current topic stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 25 Jul 2017 14:55:24 +0200
branchstable
changeset 2803 843311b8876e
parent 2797 74456bc055ae
child 2804 bae174e0e0ac
next: use the utility to retrieve the current topic
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Tue Jul 25 05:52:14 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Tue Jul 25 14:55:24 2017 +0200
@@ -2066,7 +2066,7 @@
                 raise
 
         children = [ctx for ctx in wparents[0].children() if not ctx.obsolete()]
-        topic = getattr(repo, 'currenttopic', '')
+        topic = _getcurrenttopic(repo)
         filtered = []
         if topic and not opts.get("no_topic", False):
             filtered = [ctx for ctx in children if ctx.topic() != topic]