comparison hgext/histedit.py @ 41994:550a172a603b

memctx: rename constructor argument "copied" to "copysource" (API) It's just the path, not the nodeid, so "copysource" seems more appropriate. Differential Revision: https://phab.mercurial-scm.org/D6158
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 19 Mar 2019 22:58:39 -0700
parents 82d9728ace95
children 1f567a9e25bd
comparison
equal deleted inserted replaced
41993:cde5827d09a7 41994:550a172a603b
643 flags = fctx.flags() 643 flags = fctx.flags()
644 mctx = context.memfilectx(repo, ctx, 644 mctx = context.memfilectx(repo, ctx,
645 fctx.path(), fctx.data(), 645 fctx.path(), fctx.data(),
646 islink='l' in flags, 646 islink='l' in flags,
647 isexec='x' in flags, 647 isexec='x' in flags,
648 copied=copied.get(path)) 648 copysource=copied.get(path))
649 return mctx 649 return mctx
650 return None 650 return None
651 651
652 if commitopts.get('message'): 652 if commitopts.get('message'):
653 message = commitopts['message'] 653 message = commitopts['message']