mercurial/context.py
changeset 16610 f1745323a567
parent 16602 80aef0bc5ba7
child 16657 b6081c2c4647
equal deleted inserted replaced
16603:ddd4996740c7 16610:f1745323a567
   695                 break
   695                 break
   696             c = visit.pop(max(visit))
   696             c = visit.pop(max(visit))
   697             yield c
   697             yield c
   698 
   698 
   699     def copies(self, c2):
   699     def copies(self, c2):
   700         if not util.hasattr(self, "_copycache"):
   700         if not util.safehasattr(self, "_copycache"):
   701             self._copycache = {}
   701             self._copycache = {}
   702         sc2 = str(c2)
   702         sc2 = str(c2)
   703         if sc2 not in self._copycache:
   703         if sc2 not in self._copycache:
   704             self._copycache[sc2] = copies.pathcopies(c2)
   704             self._copycache[sc2] = copies.pathcopies(c2)
   705         return self._copycache[sc2]
   705         return self._copycache[sc2]