mercurial/discovery.py
changeset 17424 e7cfe3587ea4
parent 17254 0deb66d4ad81
child 17537 31f32a96e1e3
equal deleted inserted replaced
17406:fc14953e8e34 17424:e7cfe3587ea4
    19       roots of the nodes that would be incoming, to be supplied to
    19       roots of the nodes that would be incoming, to be supplied to
    20       changegroupsubset. No code except for pull should be relying on this fact
    20       changegroupsubset. No code except for pull should be relying on this fact
    21       any longer.
    21       any longer.
    22     "heads" is either the supplied heads, or else the remote's heads.
    22     "heads" is either the supplied heads, or else the remote's heads.
    23 
    23 
    24     If you pass heads and they are all known locally, the reponse lists justs
    24     If you pass heads and they are all known locally, the response lists just
    25     these heads in "common" and in "heads".
    25     these heads in "common" and in "heads".
    26 
    26 
    27     Please use findcommonoutgoing to compute the set of outgoing nodes to give
    27     Please use findcommonoutgoing to compute the set of outgoing nodes to give
    28     extensions a good hook into outgoing.
    28     extensions a good hook into outgoing.
    29     """
    29     """
   346 
   346 
   347 
   347 
   348 def visiblebranchmap(repo):
   348 def visiblebranchmap(repo):
   349     """return a branchmap for the visible set"""
   349     """return a branchmap for the visible set"""
   350     # XXX Recomputing this data on the fly is very slow.  We should build a
   350     # XXX Recomputing this data on the fly is very slow.  We should build a
   351     # XXX cached version while computin the standard branchmap version.
   351     # XXX cached version while computing the standard branchmap version.
   352     sroots = repo._phasecache.phaseroots[phases.secret]
   352     sroots = repo._phasecache.phaseroots[phases.secret]
   353     if sroots or repo.obsstore:
   353     if sroots or repo.obsstore:
   354         vbranchmap = {}
   354         vbranchmap = {}
   355         for branch, nodes in  repo.branchmap().iteritems():
   355         for branch, nodes in  repo.branchmap().iteritems():
   356             # search for secret heads.
   356             # search for secret heads.