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

Sean Farley sean.michael.farley at gmail.com
Wed Aug 6 18:20:26 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 25355ac02c21d41b3fa2c26734e0359a051c8054
# Parent  dd995b3276747e0ceab33a4cddaf4e3dbcd4a877
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
@@ -344,23 +344,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