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

login
register
mail settings
Submitter Sean Farley
Date Aug. 6, 2014, 8:42 p.m.
Message ID <40e98e9985a2df916f70.1407357732@178.1.168.192.in-addr.arpa>
Download mbox | patch
Permalink /patch/5300/
State Accepted
Headers show

Comments

Sean Farley - Aug. 6, 2014, 8:42 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@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
Matt Mackall - Aug. 6, 2014, 9:54 p.m.
On Wed, 2014-08-06 at 15:42 -0500, Sean Farley wrote:
> # HG changeset patch
> # User Sean Farley <sean.michael.farley@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

These are queued for default, thanks.

Patch

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=''):