# HG changeset patch # User Pierre-Yves David # Date 1506423363 -7200 # Node ID 53246d23737350d6e6abef1734aeddd29f5788ba # Parent 4746b92cc1f881df1079dc0758e630028605c174 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. diff -r 4746b92cc1f8 -r 53246d237373 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)