hgext/remotefilelog/basestore.py
changeset 43105 649d3ac37a12
parent 43085 eef9a2d67051
child 43506 9f70512ae2cf
child 43722 aff3f6e407a1
equal deleted inserted replaced
43104:74802979dd9d 43105:649d3ac37a12
   146         for filenamehash, node in self._listkeys():
   146         for filenamehash, node in self._listkeys():
   147             existing.setdefault(filenamehash, []).append(node)
   147             existing.setdefault(filenamehash, []).append(node)
   148 
   148 
   149         filenamemap = self._resolvefilenames(existing.keys())
   149         filenamemap = self._resolvefilenames(existing.keys())
   150 
   150 
   151         for filename, sha in filenamemap.iteritems():
   151         for filename, sha in pycompat.iteritems(filenamemap):
   152             yield (filename, existing[sha])
   152             yield (filename, existing[sha])
   153 
   153 
   154     def _resolvefilenames(self, hashes):
   154     def _resolvefilenames(self, hashes):
   155         """Given a list of filename hashes that are present in the
   155         """Given a list of filename hashes that are present in the
   156         remotefilelog store, return a mapping from filename->hash.
   156         remotefilelog store, return a mapping from filename->hash.