changeset 3692:f9988919d69e

compat: drop vfsmod compat layer Mercurial 4.2 is no longer supported.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 19 Apr 2018 15:59:39 +0200
parents 96cb98989d57
children 105d2d2c6a2e
files hgext3rd/evolve/compat.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/compat.py	Thu Apr 19 14:26:03 2018 +0200
+++ b/hgext3rd/evolve/compat.py	Thu Apr 19 15:59:39 2018 +0200
@@ -18,17 +18,12 @@
     obsolete,
     revset,
     util,
+    vfs as vfsmod,
 )
 from mercurial.hgweb import hgweb_mod
 
 # hg < 4.2 compat
 try:
-    from mercurial import vfs as vfsmod
-    vfsmod.vfs
-except ImportError:
-    from mercurial import scmutil as vfsmod
-
-try:
     from mercurial import obsutil
     obsutil.closestpredecessors
 except ImportError: