# HG changeset patch # User Sushil khanchi # Date 1594228110 -19800 # Node ID 03ce095dc10d455a9b0e0ef843bf61f7f29d1576 # Parent 74efe8301c74fe570a8871ba39b6dabc0d6b83bc evolve: refactor some code changes diff -r 74efe8301c74 -r 03ce095dc10d hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Jul 09 20:47:11 2020 +0800 +++ b/hgext3rd/evolve/evolvecmd.py Wed Jul 08 22:38:30 2020 +0530 @@ -68,12 +68,11 @@ tr = repo.currenttransaction() assert tr is not None displayer = None + template = shorttemplate if stacktmplt: - displayer = logcmdutil.changesetdisplayer(ui, repo, - {b'template': stacktemplate}) - else: - displayer = logcmdutil.changesetdisplayer(ui, repo, - {b'template': shorttemplate}) + template = stacktemplate + displayer = logcmdutil.changesetdisplayer(ui, repo, + {b'template': template}) if b'orphan' == category: result = _solveunstable(ui, repo, ctx, evolvestate, displayer, dryrun, confirm, progresscb,