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.
--- 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)