Mercurial > hg > hg-git
diff hggit/__init__.py @ 1014:7835460756d4
repo: update repo.join to be repo.vfs.join
Upstream has deprecated repo.join in favor of repo.vfs.join, so let's update to
match them. Old hg should have repo.vfs.join so I don't think this breaks
backwards compatibility.
author | Durham Goode <durham@fb.com> |
---|---|
date | Wed, 15 Mar 2017 13:37:02 -0700 |
parents | a4f4f861fc5e |
children | 4842e94f36ca |
line wrap: on
line diff
--- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -211,7 +211,7 @@ if (getattr(dirstate, 'rootcache', False) and (not ignoremod or getattr(ignore, 'readpats', False)) and hgutil.safehasattr(repo, 'join') and - os.path.exists(repo.join('git'))): + os.path.exists(repo.vfs.join('git'))): # only install our dirstate wrapper if it has a hope of working import gitdirstate if ignoremod: