def copies(self, c2): if not util.safehasattr(self, "_copycache"): self._copycache = {} sc2 = str(c2) if sc2 not in self._copycache: self._copycache[sc2] = copies.pathcopies(c2) return self._copycache[sc2]
def map(self): # {dst@mctx: src@wctx} copy mapping return copies.pathcopies(wctx, mctx)
def duplicatecopies(repo, rev, p1): "Reproduce copies found in the source revision in the dirstate for grafts" for dst, src in copies.pathcopies(repo[p1], repo[rev]).iteritems(): repo.dirstate.copy(src, dst)