Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.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 | 87a972b5c039 |
children | a039e1f2326f |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Aug 15 15:23:36 2013 -0500 +++ b/mercurial/cmdutil.py Thu Aug 15 16:49:27 2013 -0500 @@ -2057,7 +2057,8 @@ try: fctx = ctx[path] flags = fctx.flags() - mctx = context.memfilectx(fctx.path(), fctx.data(), + mctx = context.memfilectx(repo, + fctx.path(), fctx.data(), islink='l' in flags, isexec='x' in flags, copied=copied.get(path))