hgext3rd/topic/destination.py
branchstable
changeset 5026 e7949274c3f9
parent 5024 b1a9d548af52
--- a/hgext3rd/topic/destination.py	Fri Dec 20 17:32:07 2019 +0530
+++ b/hgext3rd/topic/destination.py	Fri Dec 20 17:39:44 2019 +0530
@@ -10,6 +10,7 @@
 from . import (
     common,
     topicmap,
+    constants,
 )
 from .evolvebits import builddependencies
 
@@ -66,9 +67,10 @@
         return None, None, None
     movemark = node = None
     topic = repo.currenttopic
-    revs = []
     if topic:
         revs = repo.revs(b'.::topic(%s)', topic)
+    elif constants.extrakey in repo[b'.'].extra():
+        revs = []
     else:
         return None, None, None
     if revs: