示例#1
0
 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]
示例#2
0
 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]
示例#3
0
 def map(self):
     # {dst@mctx: src@wctx} copy mapping
     return copies.pathcopies(wctx, mctx)
示例#4
0
 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)