topic: only wrap _destupdatetopic for repo with topic stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 18 Apr 2019 12:40:53 +0200
branchstable
changeset 4538 31c1645ef8bf
parent 4537 db3e17adee3e
child 4539 91628e5c0f6d
topic: only wrap _destupdatetopic for repo with topic This helps repository with and without topic to coexist in the same process.
hgext3rd/topic/destination.py
--- a/hgext3rd/topic/destination.py	Thu Apr 18 12:39:41 2019 +0200
+++ b/hgext3rd/topic/destination.py	Thu Apr 18 12:40:53 2019 +0200
@@ -62,6 +62,8 @@
 
 def _destupdatetopic(repo, clean, check=None):
     """decide on an update destination from current topic"""
+    if not common.hastopicext(repo):
+        return None, None, None
     movemark = node = None
     topic = repo.currenttopic
     if topic: