mercurial/changegroup.py
changeset 34149 75cc1f1e11f2
parent 34148 c8b6ed51386b
child 34257 2844c4bd5a39
equal deleted inserted replaced
34148:c8b6ed51386b 34149:75cc1f1e11f2
   660         # send along with files. This could probably be fixed.
   660         # send along with files. This could probably be fixed.
   661         fastpathlinkrev = fastpathlinkrev and (
   661         fastpathlinkrev = fastpathlinkrev and (
   662             'treemanifest' not in repo.requirements)
   662             'treemanifest' not in repo.requirements)
   663 
   663 
   664         for chunk in self.generatemanifests(commonrevs, clrevorder,
   664         for chunk in self.generatemanifests(commonrevs, clrevorder,
   665                 fastpathlinkrev, mfs, fnodes):
   665                 fastpathlinkrev, mfs, fnodes, source):
   666             yield chunk
   666             yield chunk
   667         mfs.clear()
   667         mfs.clear()
   668         clrevs = set(cl.rev(x) for x in clnodes)
   668         clrevs = set(cl.rev(x) for x in clnodes)
   669 
   669 
   670         if not fastpathlinkrev:
   670         if not fastpathlinkrev:
   686 
   686 
   687         if clnodes:
   687         if clnodes:
   688             repo.hook('outgoing', node=hex(clnodes[0]), source=source)
   688             repo.hook('outgoing', node=hex(clnodes[0]), source=source)
   689 
   689 
   690     def generatemanifests(self, commonrevs, clrevorder, fastpathlinkrev, mfs,
   690     def generatemanifests(self, commonrevs, clrevorder, fastpathlinkrev, mfs,
   691                           fnodes):
   691                           fnodes, source):
       
   692         """Returns an iterator of changegroup chunks containing manifests.
       
   693 
       
   694         `source` is unused here, but is used by extensions like remotefilelog to
       
   695         change what is sent based in pulls vs pushes, etc.
       
   696         """
   692         repo = self._repo
   697         repo = self._repo
   693         mfl = repo.manifestlog
   698         mfl = repo.manifestlog
   694         dirlog = mfl._revlog.dirlog
   699         dirlog = mfl._revlog.dirlog
   695         tmfnodes = {'': mfs}
   700         tmfnodes = {'': mfs}
   696 
   701