Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 16610:f1745323a567
context: fix call to util.safehasattr
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 09 May 2012 02:46:58 +0300 |
parents | 80aef0bc5ba7 |
children | b6081c2c4647 |
comparison
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] |