changeset 2999:d94a4e150633

topic: fix topic message for mercurial 4.2 and below
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 27 Sep 2017 00:00:22 +0200
parents 6b08a7836788
children bd7e8be29542 945a0989e41b
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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