[PATCH 6 of 6] context: remove makememctx since there are no more callers

Sean Farley sean.michael.farley at gmail.com
Wed Aug 6 15:42:12 CDT 2014


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# 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=''):


More information about the Mercurial-devel mailing list