Merge 7a1d6b228af6 default tip
authorMahlon E. Smith <mahlon@martini.nu>
Wed, 31 Oct 2018 13:22:13 -0700
changeset 378 a788cfad4cfa
parent 377 18869fcfbc92 (diff)
parent 374 7a1d6b228af6 (current diff)
Merge 7a1d6b228af6
--- a/src/mercurialserver/changes.py	Sun Dec 14 20:30:25 2014 +0100
+++ b/src/mercurialserver/changes.py	Wed Oct 31 13:22:13 2018 -0700
@@ -3,10 +3,10 @@
 """
 
 def changes(repo, node):
-    start = repo.changectx(node).rev()
+    start = repo[node].rev()
     try:
         end = len(repo.changelog)
     except:
         end = repo.changelog.count()
     for rev in xrange(start, end):
-        yield repo.changectx(rev)
+        yield repo[rev]
--- a/src/mercurialserver/servelog.py	Sun Dec 14 20:30:25 2014 +0100
+++ b/src/mercurialserver/servelog.py	Wed Oct 31 13:22:13 2018 -0700
@@ -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