diff tests/test-context.py @ 21689:503bb3af70fe

memfilectx: call super.__init__ instead of duplicating code This patch changes the calling signature of memfilectx's __init__ to fall in line with the other file contexts. Calling code and tests have been updated accordingly.
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 15 Aug 2013 16:49:27 -0500
parents bd23d5f28bbb
children 232038a05fdb
line wrap: on
line diff
--- a/tests/test-context.py	Thu Aug 15 15:23:36 2013 -0500
+++ b/tests/test-context.py	Thu Aug 15 16:49:27 2013 -0500
@@ -21,7 +21,7 @@
 # test memctx with non-ASCII commit message
 
 def filectxfn(repo, memctx, path):
-    return context.memfilectx("foo", "")
+    return context.memfilectx(repo, "foo", "")
 
 ctx = context.memctx(repo, ['tip', None],
                      encoding.tolocal("Gr\xc3\xbcezi!"),