evolve: modify and move the comment to appropriate position
authorSushil khanchi <sushilkhanchi97@gmail.com>
Wed, 31 Oct 2018 14:06:17 +0530
changeset 4249 0d9697367fff
parent 4248 51b69f3dfc0b
child 4250 781d058d14f9
evolve: modify and move the comment to appropriate position
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Wed Oct 31 14:01:58 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Wed Oct 31 14:06:17 2018 +0530
@@ -1582,14 +1582,14 @@
         # to confirm that if atop msg should be suppressed to remove redundancy
         lastsolved = None
 
-        # check if revs to be evolved are in active topic to make sure that we
-        # can use stack aliases s# in evolve msgs.
         activetopic = getattr(repo, 'currenttopic', '')
         for rev in revs:
             curctx = repo[rev]
             revtopic = getattr(curctx, 'topic', lambda: '')()
             topicidx = getattr(curctx, 'topicidx', lambda: None)()
             stacktmplt = False
+            # check if revision being evolved is in active topic to make sure
+            # that we can use stack aliases s# in evolve msgs.
             if activetopic and (activetopic == revtopic) and topicidx is not None:
                 stacktmplt = True
             progresscb()