changeset 605:b72850177e5c

stupid: update monkeypatch for 91c58cf54eee
author Augie Fackler <durin42@gmail.com>
date Thu, 22 Apr 2010 22:37:03 -0500
parents 1290ab9def8f
children 789eec0a339c
files hgsubversion/stupid.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/stupid.py
+++ b/hgsubversion/stupid.py
@@ -54,9 +54,10 @@ def mempatchproxy(parentctx, files):
     # Avoid circular references patch.patchfile -> mempatch
     patchfile = patch.patchfile
 
+    # TODO(durin42): make this a compat path for hg < 1.6.
     class mempatch(patchfile):
-        def __init__(self, ui, fname, opener, missing=False, eol=None):
-            patchfile.__init__(self, ui, fname, None, False, eol)
+        def __init__(self, ui, fname, opener, missing=False, eolmode=None):
+            patchfile.__init__(self, ui, fname, None, False, eolmode)
 
         def readlines(self, fname):
             if fname not in parentctx: