Show More
@@ -722,6 +722,14 b' class basefilectx(object):' | |||||
722 | c = visit.pop(max(visit)) |
|
722 | c = visit.pop(max(visit)) | |
723 | yield c |
|
723 | yield c | |
724 |
|
724 | |||
|
725 | def copies(self, c2): | |||
|
726 | if not util.safehasattr(self, "_copycache"): | |||
|
727 | self._copycache = {} | |||
|
728 | sc2 = str(c2) | |||
|
729 | if sc2 not in self._copycache: | |||
|
730 | self._copycache[sc2] = copies.pathcopies(c2) | |||
|
731 | return self._copycache[sc2] | |||
|
732 | ||||
725 | class filectx(basefilectx): |
|
733 | class filectx(basefilectx): | |
726 | """A filecontext object makes access to data related to a particular |
|
734 | """A filecontext object makes access to data related to a particular | |
727 | filerevision convenient.""" |
|
735 | filerevision convenient.""" | |
@@ -813,14 +821,6 b' class filectx(basefilectx):' | |||||
813 | return [filectx(self._repo, self._path, fileid=x, |
|
821 | return [filectx(self._repo, self._path, fileid=x, | |
814 | filelog=self._filelog) for x in c] |
|
822 | filelog=self._filelog) for x in c] | |
815 |
|
823 | |||
816 | def copies(self, c2): |
|
|||
817 | if not util.safehasattr(self, "_copycache"): |
|
|||
818 | self._copycache = {} |
|
|||
819 | sc2 = str(c2) |
|
|||
820 | if sc2 not in self._copycache: |
|
|||
821 | self._copycache[sc2] = copies.pathcopies(c2) |
|
|||
822 | return self._copycache[sc2] |
|
|||
823 |
|
||||
824 | class workingctx(basectx): |
|
824 | class workingctx(basectx): | |
825 | """A workingctx object makes access to data related to |
|
825 | """A workingctx object makes access to data related to | |
826 | the current working directory convenient. |
|
826 | the current working directory convenient. |
General Comments 0
You need to be logged in to leave comments.
Login now