Mercurial > evolve
changeset 5397:03ce095dc10d
evolve: refactor some code changes
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 22:38:30 +0530 |
parents | 74efe8301c74 |
children | b3e178f3e31f |
files | hgext3rd/evolve/evolvecmd.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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,