Use repo vfs to join the server log
authorCédric Krier <ced@b2ck.com>
Mon, 11 Sep 2017 21:38:10 +0200
changeset 375 a41e4382ea6e
parent 373 a286d6c6b19c
child 377 18869fcfbc92
Use repo vfs to join the server log The method join on repo has been removed in changeset edb7f628ef8b of mercurial.
src/mercurialserver/servelog.py
--- a/src/mercurialserver/servelog.py	Wed Mar 05 12:16:46 2014 +0100
+++ b/src/mercurialserver/servelog.py	Mon Sep 11 21:38:10 2017 +0200
@@ -33,7 +33,7 @@
         op=op,
         key=ruleset.rules.get('user'),
         ssh_connection=os.environ['SSH_CONNECTION'],))
-    with open(repo.join("mercurial-server.log"), "a+") as log:
+    with open(repo.vfs.join("mercurial-server.log"), "a+") as log:
         fcntl.flock(log.fileno(), fcntl.LOCK_EX)
         log.seek(0, os.SEEK_END)
         # YAML log file format