changeset 3095: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
+++ b/hgext3rd/topic/__init__.py
@@ -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