changeset 20236 | d0097d5818f9 |
parent 20035 | cd79d9ab5e42 |
child 20292 | 8dc254198a8f |
20235:a602d2aca8bf | 20236:d0097d5818f9 |
---|---|
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from node import nullid, nullrev, short, hex, bin |
8 from node import nullid, nullrev, short, hex, bin |
9 from i18n import _ |
9 from i18n import _ |
10 import ancestor, mdiff, error, util, scmutil, subrepo, patch, encoding, phases |
10 import ancestor, mdiff, error, util, scmutil, subrepo, patch, encoding, phases |
11 import copies |
|
12 import match as matchmod |
11 import match as matchmod |
13 import os, errno, stat |
12 import os, errno, stat |
14 import obsolete as obsmod |
13 import obsolete as obsmod |
15 import repoview |
14 import repoview |
16 |
15 |
735 if not visit: |
734 if not visit: |
736 break |
735 break |
737 c = visit.pop(max(visit)) |
736 c = visit.pop(max(visit)) |
738 yield c |
737 yield c |
739 |
738 |
740 def copies(self, c2): |
|
741 if not util.safehasattr(self, "_copycache"): |
|
742 self._copycache = {} |
|
743 sc2 = str(c2) |
|
744 if sc2 not in self._copycache: |
|
745 self._copycache[sc2] = copies.pathcopies(c2) |
|
746 return self._copycache[sc2] |
|
747 |
|
748 class filectx(basefilectx): |
739 class filectx(basefilectx): |
749 """A filecontext object makes access to data related to a particular |
740 """A filecontext object makes access to data related to a particular |
750 filerevision convenient.""" |
741 filerevision convenient.""" |
751 def __init__(self, repo, path, changeid=None, fileid=None, |
742 def __init__(self, repo, path, changeid=None, fileid=None, |
752 filelog=None, changectx=None): |
743 filelog=None, changectx=None): |