hgext3rd/topic/discovery.py
changeset 1934 9d6d30e36cdd
parent 1921 4898296d7d25
child 1944 daad8249d5cf
equal deleted inserted replaced
1933:ca8674a8fce4 1934:9d6d30e36cdd
       
     1 from __future__ import absolute_import
       
     2 
     1 import weakref
     3 import weakref
     2 from mercurial import branchmap
     4 
     3 from mercurial import error
       
     4 from mercurial import exchange
       
     5 from mercurial.i18n import _
     5 from mercurial.i18n import _
       
     6 from mercurial import (
       
     7     branchmap,
       
     8     error,
       
     9     exchange,
       
    10 )
       
    11 
     6 from . import topicmap
    12 from . import topicmap
     7 
    13 
     8 def _headssummary(orig, repo, remote, outgoing):
    14 def _headssummary(orig, repo, remote, outgoing):
     9     publishing = ('phases' not in remote.listkeys('namespaces')
    15     publishing = ('phases' not in remote.listkeys('namespaces')
    10                   or bool(remote.listkeys('phases').get('publishing', False)))
    16                   or bool(remote.listkeys('phases').get('publishing', False)))