Skip to content
Snippets Groups Projects
Commit 310b4a1c authored by muxator's avatar muxator
Browse files

compat: document more precisely when new parameters were introduced in memfilectx()

- (repo, path, data): landed in 3.1.
  Introduced by mercurial 503bb3af70fe (2013-08-15)

- (repo, changectx, path, data): landed in 4.5.
  Introduced by mercurial 8a0cac20a1ad (2017-12-11)
parent 5d688b5c
No related branches found
No related tags found
No related merge requests found
......@@ -141,9 +141,9 @@
# Different versions of mercurial have different parameters to
# memfilectx. Try them from newest to oldest.
args_to_try = (
(repo, changectx, path, data), # hg 4.5+
(repo, path, data), # hg 3.1 - 4.5
(path, data), # hg < 3.1
(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:
try:
......
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