##// END OF EJS Templates
commitablefilectx: move __init__ from workingfilectx
Sean Farley -
r19702:d25fdd4c default
parent child Browse files
Show More
@@ -1192,12 +1192,6 b' class commitablefilectx(basefilectx):'
1192 """A commitablefilectx provides common functionality for a file context that
1192 """A commitablefilectx provides common functionality for a file context that
1193 wants the ability to commit, e.g. workingfilectx or memfilectx."""
1193 wants the ability to commit, e.g. workingfilectx or memfilectx."""
1194 def __init__(self, repo, path, filelog=None, ctx=None):
1194 def __init__(self, repo, path, filelog=None, ctx=None):
1195 pass
1196
1197 class workingfilectx(commitablefilectx):
1198 """A workingfilectx object makes access to data related to a particular
1199 file in the working directory convenient."""
1200 def __init__(self, repo, path, filelog=None, workingctx=None):
1201 self._repo = repo
1195 self._repo = repo
1202 self._path = path
1196 self._path = path
1203 self._changeid = None
1197 self._changeid = None
@@ -1205,8 +1199,14 b' class workingfilectx(commitablefilectx):'
1205
1199
1206 if filelog is not None:
1200 if filelog is not None:
1207 self._filelog = filelog
1201 self._filelog = filelog
1208 if workingctx:
1202 if ctx:
1209 self._changectx = workingctx
1203 self._changectx = ctx
1204
1205 class workingfilectx(commitablefilectx):
1206 """A workingfilectx object makes access to data related to a particular
1207 file in the working directory convenient."""
1208 def __init__(self, repo, path, filelog=None, workingctx=None):
1209 super(workingfilectx, self).__init__(repo, path, filelog, workingctx)
1210
1210
1211 @propertycache
1211 @propertycache
1212 def _changectx(self):
1212 def _changectx(self):
General Comments 0
You need to be logged in to leave comments. Login now