comparison 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
comparison
equal deleted inserted replaced
21688:cc677803bad4 21689:503bb3af70fe
2055 2055
2056 def filectxfn(repo, ctx_, path): 2056 def filectxfn(repo, ctx_, path):
2057 try: 2057 try:
2058 fctx = ctx[path] 2058 fctx = ctx[path]
2059 flags = fctx.flags() 2059 flags = fctx.flags()
2060 mctx = context.memfilectx(fctx.path(), fctx.data(), 2060 mctx = context.memfilectx(repo,
2061 fctx.path(), fctx.data(),
2061 islink='l' in flags, 2062 islink='l' in flags,
2062 isexec='x' in flags, 2063 isexec='x' in flags,
2063 copied=copied.get(path)) 2064 copied=copied.get(path))
2064 return mctx 2065 return mctx
2065 except KeyError: 2066 except KeyError: