--- 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