hgext3rd/topic/__init__.py
branchstable
changeset 4235 e30119dfd626
parent 4231 3eb78bdcdd7c
child 4236 259d57b906a4
child 4277 7edc5c148df0
--- 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)