Use repo.vfs.join instead of repo.join

repo.join was deprecated in favor of repo.vfs.join() and is now dropped in mercurial 4.3

Closes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872692 Closes #10126859

authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
changesetbc780e7d305c
branchdefault
phasepublic
hiddenno
parent revision#c07c78d2e352 [hgext] support hg 4.2
child revision#22e1a974ef09 Install hgext3rd and hgext3rd.hgview as packages
files modified by this revision
hgviewlib/qt4/hgrepoviewer.py
# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1502971163 -7200
# Thu Aug 17 13:59:23 2017 +0200
# Node ID bc780e7d305c6b8dc2a33503ad3051f8fcc8d31f
# Parent c07c78d2e3522a113c972ef2c5aa1c9e272c28fd
Use repo.vfs.join instead of repo.join

repo.join was deprecated in favor of repo.vfs.join() and is now dropped in
mercurial 4.3

Closes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872692
Closes #10126859

diff --git a/hgviewlib/qt4/hgrepoviewer.py b/hgviewlib/qt4/hgrepoviewer.py
@@ -618,11 +618,11 @@
1          watchedfiles = [(self.repo.root, ".hg", "store"),
2                          (self.repo.root, ".hg", "store", "00changelog.i"),
3                          (self.repo.root, ".hg", "dirstate"),
4                          (self.repo.root, ".hg", "store", "phasesroots"),]
5          watchedfiles = [os.path.join(*wf) for wf in watchedfiles]
6 -        for l in (self.repo.sjoin('lock'), self.repo.join('wlock')):
7 +        for l in (self.repo.sjoin('lock'), self.repo.vfs.join('wlock')):
8              try:
9                  if util.readlock(l):
10                      break
11              except EnvironmentError, err:
12                  # depending on platform (win, nix) the "posix file" abstraction