evolve: drop compat for pre-4.5 context.memfilectx()
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 09 Mar 2020 18:47:18 +0700
changeset 5190 d2e0e6447a73
parent 5189 26b47a967a1d
child 5191 dadc642e78d2
evolve: drop compat for pre-4.5 context.memfilectx()
hgext3rd/evolve/compat.py
--- a/hgext3rd/evolve/compat.py	Mon Mar 09 18:36:10 2020 +0700
+++ b/hgext3rd/evolve/compat.py	Mon Mar 09 18:47:18 2020 +0700
@@ -78,17 +78,12 @@
                                   islink=b'l' in flags,
                                   isexec=b'x' in flags,
                                   copysource=copied.get(path))
-    # compat with hg <- 4.9
+    # compat with hg <= 4.9
     elif varnames[2] == r"changectx":
         mctx = context.memfilectx(repo, ctx, fctx.path(), fctx.data(),
                                   islink=b'l' in flags,
                                   isexec=b'x' in flags,
                                   copied=copied.get(path))  # pytype: disable=wrong-keyword-args
-    else:
-        mctx = context.memfilectx(repo, fctx.path(), fctx.data(),
-                                  islink=b'l' in flags,
-                                  isexec=b'x' in flags,
-                                  copied=copied.get(path))  # pytype: disable=wrong-keyword-args
     return mctx
 
 # 46c2b19a1263f18a5829a21b7a5053019b0c5a31 in hg moved repair.stripbmrevset to