Skip to content
Snippets Groups Projects
Commit 15d29412 authored by muxator's avatar muxator
Browse files

compat: in memfilectx(), rename "args_to_try" to "parameters_to_try"

Next commits will make the code more generic, so let's start using a more
generic name, too.
parent 310b4a1c
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,8 @@
isexec=False, copied=None):
# Different versions of mercurial have different parameters to
# memfilectx. Try them from newest to oldest.
args_to_try = (
parameters_to_try = (
(repo, changectx, path, data), # hg >= 4.5
(repo, path, data), # hg 3.1 - 4.4.2
(path, data), # hg <= 3.0.2
)
......@@ -144,8 +144,8 @@
(repo, changectx, path, data), # hg >= 4.5
(repo, path, data), # hg 3.1 - 4.4.2
(path, data), # hg <= 3.0.2
)
for args in args_to_try:
for args in parameters_to_try:
try:
return context.memfilectx(*args,
islink=islink,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment