From patchwork Wed Aug 6 20:42:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,6] context: remove makememctx since there are no more callers From: Sean Farley X-Patchwork-Id: 5300 Message-Id: <40e98e9985a2df916f70.1407357732@178.1.168.192.in-addr.arpa> To: mercurial-devel@selenic.com Date: Wed, 06 Aug 2014 15:42:12 -0500 # HG changeset patch # User Sean Farley # Date 1402871048 25200 # Sun Jun 15 15:24:08 2014 -0700 # Node ID 40e98e9985a2df916f7041c6130b90dea1e6fcc4 # Parent cefda708ede4ff90ff5db86885c3118509461ec0 context: remove makememctx since there are no more callers diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -342,23 +342,10 @@ class basectx(object): # we return a tuple to signify that this list isn't changing return tuple(r) -def makememctx(repo, parents, text, user, date, branch, files, store, - editor=None): - def getfilectx(repo, memctx, path): - data, (islink, isexec), copied = store.getfile(path) - return memfilectx(repo, path, data, islink=islink, isexec=isexec, - copied=copied, memctx=memctx) - extra = {} - if branch: - extra['branch'] = encoding.fromlocal(branch) - ctx = memctx(repo, parents, text, files, getfilectx, user, - date, extra, editor) - return ctx - class changectx(basectx): """A changecontext object makes access to data related to a particular changeset convenient. It represents a read-only context already present in the repo.""" def __init__(self, repo, changeid=''):