changeset 48215:d8cff8564f5a

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
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 12 Oct 2021 14:12:41 -0700
parents 1895027c5051
children 7bc1beedd718
files hgext/histedit.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Tue Oct 12 14:28:51 2021 -0700
+++ b/hgext/histedit.py	Tue Oct 12 14:12:41 2021 -0700
@@ -1716,11 +1716,11 @@
                 _(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: