topic: fix topic message for mercurial 4.2 and below
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 27 Sep 2017 00:00:22 +0200
changeset 2999 d94a4e150633
parent 2998 6b08a7836788
child 3000 bd7e8be29542
child 3013 945a0989e41b
topic: fix topic message for mercurial 4.2 and below
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Tue Sep 26 19:05:04 2017 +0530
+++ b/hgext3rd/topic/__init__.py	Wed Sep 27 00:00:22 2017 +0200
@@ -315,7 +315,7 @@
         def transaction(self, desc, *a, **k):
             ctr = self.currenttransaction()
             tr = super(topicrepo, self).transaction(desc, *a, **k)
-            if desc is 'strip' or ctr is not None:
+            if desc in ('strip', 'repair') or ctr is not None:
                 return tr
 
             # real transaction start