diff hgext3rd/topic/stack.py @ 1925:8f8a48a2e97d

stack: whitespace
author Sean Farley <sean@farley.io>
date Mon, 21 Mar 2016 21:30:14 -0700
parents eadcc5f8edf6
children 31583ddda6d9
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Mon Mar 21 21:29:35 2016 -0700
+++ b/hgext3rd/topic/stack.py	Mon Mar 21 21:30:14 2016 -0700
@@ -20,14 +20,14 @@
     fm = ui.formatter('topicstack', opts)
     prev = None
     for idx, r in enumerate(getstack(repo, topic)):
-        ctx =  repo[r]
+        ctx = repo[r]
         p1 = ctx.p1()
         if p1.obsolete():
             p1 = repo[_singlesuccessor(repo, p1)]
         if p1.rev() != prev:
             # display the parent of the changeset
             state = 'base'
-            symbol= '_'
+            symbol = '_'
             fm.startitem()
             fm.plain('  ') # XXX 2 is the right padding by chance
             fm.write('topic.stack.state', '%s', symbol,
@@ -49,14 +49,14 @@
             state = 'unstable'
         fm.startitem()
         fm.write('topic.stack.index', 't%d', idx,
-                  label='topic.stack.index topic.stack.index.%s' % state)
+                 label='topic.stack.index topic.stack.index.%s' % state)
         fm.write('topic.stack.state.symbol', '%s', symbol,
                  label='topic.stack.state topic.stack.state.%s' % state)
         fm.plain(' ')
         fm.write('topic.stack.desc', '%s', ctx.description().splitlines()[0],
                  label='topic.stack.desc topic.stack.desc.%s' % state)
         fm.condwrite(state != 'clean', 'topic.stack.state', ' (%s)', state,
-                    label='topic.stack.state topic.stack.state.%s' % state)
+                     label='topic.stack.state topic.stack.state.%s' % state)
         fm.plain('\n')
         fm.end()
         prev = r