##// END OF EJS Templates
chistedit: use context manager to set verbose ui...
Jordi Gutiérrez Hermoso -
r42336:9e40c589 default
parent child Browse files
Show More
@@ -1230,12 +1230,13 b' def addln(win, y, x, line, color=None):'
1230 def patchcontents(state):
1230 def patchcontents(state):
1231 repo = state['repo']
1231 repo = state['repo']
1232 rule = state['rules'][state['pos']]
1232 rule = state['rules'][state['pos']]
1233 repo.ui.verbose = True
1234 displayer = logcmdutil.changesetdisplayer(repo.ui, repo, {
1233 displayer = logcmdutil.changesetdisplayer(repo.ui, repo, {
1235 "patch": True, "template": "status"
1234 "patch": True, "template": "status"
1236 }, buffered=True)
1235 }, buffered=True)
1237 displayer.show(rule.ctx)
1236 overrides = {('ui', 'verbose'): True}
1238 displayer.close()
1237 with repo.ui.configoverride(overrides, source='histedit'):
1238 displayer.show(rule.ctx)
1239 displayer.close()
1239 return displayer.hunk[rule.ctx.rev()].splitlines()
1240 return displayer.hunk[rule.ctx.rev()].splitlines()
1240
1241
1241 def _chisteditmain(repo, rules, stdscr):
1242 def _chisteditmain(repo, rules, stdscr):
General Comments 0
You need to be logged in to leave comments. Login now