--- a/hgext3rd/topic/__init__.py Tue Nov 06 15:53:18 2018 +0530
+++ b/hgext3rd/topic/__init__.py Sat Nov 10 15:37:22 2018 +0100
@@ -391,10 +391,10 @@
current = self.currenttopic
if current:
ctx.extra()[constants.extrakey] = current
- if (isinstance(ctx, context.memctx) and
- ctx.extra().get('amend_source') and
- ctx.topic() and
- not self.currenttopic):
+ if (isinstance(ctx, context.memctx)
+ and ctx.extra().get('amend_source')
+ and ctx.topic()
+ and not self.currenttopic):
# we are amending and need to remove a topic
del ctx.extra()[constants.extrakey]
return super(topicrepo, self).commitctx(ctx, error=error)