# HG changeset patch # User Aurélien Campéas # Date 1506096089 -7200 # Node ID d59d6413bb6880f721693147cebe2d9fe8d781f5 # Parent 4746b92cc1f881df1079dc0758e630028605c174 topics/transaction: return immediately if we are in the middle of a transaction diff -r 4746b92cc1f8 -r d59d6413bb68 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Fri Sep 22 16:41:37 2017 +0200 +++ b/hgext3rd/topic/__init__.py Fri Sep 22 18:01:29 2017 +0200 @@ -313,7 +313,10 @@ return peer def transaction(self, *a, **k): + ctr = self.currenttransaction() tr = super(topicrepo, self).transaction(*a, **k) + if ctr is not None: + return tr reporef = weakref.ref(self)