Compatibility with future Mercurial 3.1 is broken
Created originally on Bitbucket by Felipe Contreras
Testing hg-git with the latest Mercurial tip shows errors because the arguments passed to context.memfilectx has changed.
This fixes it:
#!diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -817,7 +817,7 @@ class GitHandler(object):
e = fc.flags()
copied_path = fc.renamed()
- return context.memfilectx(f, data, 'l' in e, 'x' in e, copied_path)
+ return context.memfilectx(repo, f, data, 'l' in e, 'x' in e, copied_path)
p1, p2 = (nullid, nullid)
octopus = False