# HG changeset patch # User Sushil khanchi # Date 1540974977 -19800 # Node ID 0d9697367fff9e6fb3ff8ac8b2f0a813660d009b # Parent 51b69f3dfc0b995b3b1842c97d6f89afa68dbed1 evolve: modify and move the comment to appropriate position diff -r 51b69f3dfc0b -r 0d9697367fff 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()