diff hggit/__init__.py @ 1018:715cbf3fa24c

vfs: stop using repo.join/wjoin Mercurial 4.3 has completelu dropped the join and wjoin functions. Let's use the appropriate repo.vfs.join and repo.wvfs.join functions instead. I ran the tests against each version of Mercurial from 2.8 to 4.2. Things before 2.8 seem to already be broken for unrelated reasons.
author Durham Goode <durham@fb.com>
date Tue, 09 May 2017 14:33:28 -0700
parents 1bd9d9a0201c
children f2118a7dd764
line wrap: on
line diff
--- a/hggit/__init__.py	Tue Apr 18 23:42:33 2017 -0500
+++ b/hggit/__init__.py	Tue May 09 14:33:28 2017 -0700
@@ -210,7 +210,7 @@
 
         if (getattr(dirstate, 'rootcache', False) and
             (not ignoremod or getattr(ignore, 'readpats', False)) and
-            hgutil.safehasattr(repo, 'join') and
+            hgutil.safehasattr(repo, 'vfs') and
             os.path.exists(repo.vfs.join('git'))):
             # only install our dirstate wrapper if it has a hope of working
             import gitdirstate