[PATCH] memfilectx: non-essential parameters should be optional

Alexander Solovyov piranha at piranha.org.ua
Sun May 2 04:55:04 CDT 2010


# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1272793301 -10800
# Node ID 1f5713f503be27a28a3dcb0e7b0ba4bc00eae6a8
# Parent  c2601c2163333a2f8913efc95e83f74dc0e912ad
memfilectx: non-essential parameters should be optional

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -892,7 +892,7 @@ class memfilectx(object):
 
     See memctx for more details.
     """
-    def __init__(self, path, data, islink, isexec, copied):
+    def __init__(self, path, data, islink=False, isexec=False, copied=None):
         """
         path is the normalized file path relative to repository root.
         data is the file content as a string.


More information about the Mercurial-devel mailing list