comparison mercurial/context.py @ 19612:df54cc67b91b

workingfilectx: inherit from basefilectx instead of filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 23:50:32 -0500
parents bae0493b6dc0
children f354e5cdb788
comparison
equal deleted inserted replaced
19611:bae0493b6dc0 19612:df54cc67b91b
1184 self._repo.dirstate.setparents(node) 1184 self._repo.dirstate.setparents(node)
1185 1185
1186 def dirs(self): 1186 def dirs(self):
1187 return self._repo.dirstate.dirs() 1187 return self._repo.dirstate.dirs()
1188 1188
1189 class workingfilectx(filectx): 1189 class workingfilectx(basefilectx):
1190 """A workingfilectx object makes access to data related to a particular 1190 """A workingfilectx object makes access to data related to a particular
1191 file in the working directory convenient.""" 1191 file in the working directory convenient."""
1192 def __init__(self, repo, path, filelog=None, workingctx=None): 1192 def __init__(self, repo, path, filelog=None, workingctx=None):
1193 """changeid can be a changeset revision, node, or tag. 1193 """changeid can be a changeset revision, node, or tag.
1194 fileid can be a file revision or node.""" 1194 fileid can be a file revision or node."""