# 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 --git a/hgext3rd/topic/__init__.py b/hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py +++ b/hgext3rd/topic/__init__.py @@ -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)