mercurial/changegroup.py
branchstable
changeset 20936 bfb40168391c
parent 19708 fd4f612f7cb6
child 20942 3737e653dcbe
equal deleted inserted replaced
20874:03a85aed8848 20936:bfb40168391c
   356         mfs.clear()
   356         mfs.clear()
   357         needed = set(cl.rev(x) for x in clnodes)
   357         needed = set(cl.rev(x) for x in clnodes)
   358 
   358 
   359         def linknodes(filerevlog, fname):
   359         def linknodes(filerevlog, fname):
   360             if fastpathlinkrev:
   360             if fastpathlinkrev:
   361                 ln, llr = filerevlog.node, filerevlog.linkrev
   361                 llr = filerevlog.linkrev
   362                 def genfilenodes():
   362                 def genfilenodes():
   363                     for r in filerevlog:
   363                     for r in filerevlog:
   364                         linkrev = llr(r)
   364                         linkrev = llr(r)
   365                         if linkrev in needed:
   365                         if linkrev in needed:
   366                             yield filerevlog.node(r), cl.node(linkrev)
   366                             yield filerevlog.node(r), cl.node(linkrev)