--- a/hgext/remotefilelog/debugcommands.py Tue Sep 17 18:36:30 2019 +0200
+++ b/hgext/remotefilelog/debugcommands.py Wed Sep 11 17:41:13 2019 +0200
@@ -15,6 +15,7 @@
from mercurial import (
error,
filelog,
+ lock as lockmod,
node as nodemod,
pycompat,
revlog,
@@ -22,7 +23,6 @@
from . import (
constants,
datapack,
- extutil,
fileserverclient,
historypack,
repack,
@@ -369,7 +369,7 @@
short(p2node), short(linknode), copyfrom))
def debugwaitonrepack(repo):
- with extutil.flock(repack.repacklockvfs(repo).join('repacklock'), ''):
+ with lockmod.lock(repack.repacklockvfs(repo), "repacklock", timeout=-1):
return
def debugwaitonprefetch(repo):