Changeset View
Changeset View
Standalone View
Standalone View
mercurial/context.py
Show First 20 Lines • Show All 2092 Lines • ▼ Show 20 Line(s) | class overlayworkingfilectx(workingfilectx): | ||||
def __init__(self, repo, path, filelog=None, parent=None): | def __init__(self, repo, path, filelog=None, parent=None): | ||||
super(overlayworkingfilectx, self).__init__(repo, path, filelog, | super(overlayworkingfilectx, self).__init__(repo, path, filelog, | ||||
parent) | parent) | ||||
self._repo = repo | self._repo = repo | ||||
self._parent = parent | self._parent = parent | ||||
self._path = path | self._path = path | ||||
def cmp(self, fctx): | |||||
return self.data() != fctx.data() | |||||
def ctx(self): | def ctx(self): | ||||
return self._parent | return self._parent | ||||
def data(self): | def data(self): | ||||
return self._parent.data(self._path) | return self._parent.data(self._path) | ||||
def date(self): | def date(self): | ||||
return self._parent.filedate(self._path) | return self._parent.filedate(self._path) | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |