##// END OF EJS Templates
basefilectx: move copies from filectx
Sean Farley -
r19611:bae0493b default
parent child Browse files
Show More
@@ -722,6 +722,14 b' class basefilectx(object):'
722 722 c = visit.pop(max(visit))
723 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 733 class filectx(basefilectx):
726 734 """A filecontext object makes access to data related to a particular
727 735 filerevision convenient."""
@@ -813,14 +821,6 b' class filectx(basefilectx):'
813 821 return [filectx(self._repo, self._path, fileid=x,
814 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 824 class workingctx(basectx):
825 825 """A workingctx object makes access to data related to
826 826 the current working directory convenient.
General Comments 0
You need to be logged in to leave comments. Login now