mercurial/pushkey.py
changeset 22953 b1d694d3975e
parent 21661 2f52a16f2bee
child 25969 7b200566e474
equal deleted inserted replaced
22952:8792ac090e3b 22953:b1d694d3975e
     9 
     9 
    10 def _nslist(repo):
    10 def _nslist(repo):
    11     n = {}
    11     n = {}
    12     for k in _namespaces:
    12     for k in _namespaces:
    13         n[k] = ""
    13         n[k] = ""
    14     if not obsolete._enabled:
    14     if not obsolete.isenabled(repo, obsolete.exchangeopt):
    15         n.pop('obsolete')
    15         n.pop('obsolete')
    16     return n
    16     return n
    17 
    17 
    18 _namespaces = {"namespaces": (lambda *x: False, _nslist),
    18 _namespaces = {"namespaces": (lambda *x: False, _nslist),
    19                "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks),
    19                "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks),