Commit 5e3ef5fd authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

chistedit: rename a confusingly named variable

I would expect `ctxs` contain instances of some class from the
`context` module but it actually contains instances of `histeditrule`.

Differential Revision: https://phab.mercurial-scm.org/D11653
parent 1895027c5051
......@@ -1716,11 +1716,11 @@ def _chistedit(ui, repo, freeargs, opts):
_(b'%s is not an ancestor of working directory') % short(root)
)
ctxs = []
rules = []
for i, r in enumerate(revs):
ctxs.append(histeditrule(ui, repo[r], i))
rules.append(histeditrule(ui, repo[r], i))
with util.with_lc_ctype():
rc = curses.wrapper(functools.partial(_chisteditmain, repo, ctxs))
rc = curses.wrapper(functools.partial(_chisteditmain, repo, rules))
curses.echo()
curses.endwin()
if rc is False:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment