topic: skip topic movement message during strip
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 26 Sep 2017 12:56:03 +0200
changeset 2989 53246d237373
parent 2986 4746b92cc1f8
child 2990 c2102598adf5
topic: skip topic movement message during strip During strip transaction the repository is not in a great state. It is simpler to skip the computation entirely.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Fri Sep 22 16:41:37 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Tue Sep 26 12:56:03 2017 +0200
@@ -312,8 +312,10 @@
                 peer.__class__ = topicpeer
             return peer
 
-        def transaction(self, *a, **k):
-            tr = super(topicrepo, self).transaction(*a, **k)
+        def transaction(self, desc, *a, **k):
+            tr = super(topicrepo, self).transaction(desc, *a, **k)
+            if desc == 'strip':
+                return tr
 
             reporef = weakref.ref(self)