Patchwork [41,of,41] workingfilectx: inherit from basefilectx instead of filectx

login
register
mail settings
Submitter Sean Farley
Date Aug. 12, 2013, 4:27 p.m.
Message ID <dc804d89accf470a23e0.1376324857@laptop.local>
Download mbox | patch
Permalink /patch/2168/
State Accepted
Commit df54cc67b91bea97c4fc299241a67aeecf099d00
Headers show

Comments

Sean Farley - Aug. 12, 2013, 4:27 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376283032 18000
#      Sun Aug 11 23:50:32 2013 -0500
# Node ID dc804d89accf470a23e0843b8c52eac1420f8477
# Parent  3ff4552ea7280928297d313cfac7e46675a31bd3
workingfilectx: inherit from basefilectx instead of filectx

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1184,11 +1184,11 @@ 
         self._repo.dirstate.setparents(node)
 
     def dirs(self):
         return self._repo.dirstate.dirs()
 
-class workingfilectx(filectx):
+class workingfilectx(basefilectx):
     """A workingfilectx object makes access to data related to a particular
        file in the working directory convenient."""
     def __init__(self, repo, path, filelog=None, workingctx=None):
         """changeid can be a changeset revision, node, or tag.
            fileid can be a file revision or node."""