debuglock: access the lock file using the proper vfs stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 20 Apr 2015 16:05:32 +0200
branchstable
changeset 24820 6a6b69d9e539
parent 24819 22c70c08d4af
child 24821 57f1dbc99631
debuglock: access the lock file using the proper vfs Before this fix, 'wlock' was always reported as "free" because '.hg/store/wlock' have never been a thing.
mercurial/commands.py
--- a/mercurial/commands.py	Sun Apr 19 21:43:53 2015 -0700
+++ b/mercurial/commands.py	Mon Apr 20 16:05:32 2015 +0200
@@ -2484,7 +2484,7 @@
             l.release()
         else:
             try:
-                stat = repo.svfs.lstat(name)
+                stat = vfs.lstat(name)
                 age = now - stat.st_mtime
                 user = util.username(stat.st_uid)
                 locker = vfs.readlock(name)