changeset 2989:53246d237373

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 26 Sep 2017 12:56:03 +0200
parents 4746b92cc1f8
children c2102598adf5
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)