hgext/narrow/__init__.py
changeset 37136 e2d386b8a38f
parent 36472 d0d5eef57fb0
child 37186 6d43b39fbaa0
equal deleted inserted replaced
37135:ecac0006b90e 37136:e2d386b8a38f
    54 )
    54 )
    55 
    55 
    56 # Export the commands table for Mercurial to see.
    56 # Export the commands table for Mercurial to see.
    57 cmdtable = narrowcommands.table
    57 cmdtable = narrowcommands.table
    58 
    58 
    59 localrepo.localrepository._basesupported.add(changegroup.NARROW_REQUIREMENT)
    59 def featuresetup(ui, features):
       
    60     features.add(changegroup.NARROW_REQUIREMENT)
    60 
    61 
    61 def uisetup(ui):
    62 def uisetup(ui):
    62     """Wraps user-facing mercurial commands with narrow-aware versions."""
    63     """Wraps user-facing mercurial commands with narrow-aware versions."""
       
    64     localrepo.featuresetupfuncs.add(featuresetup)
    63     narrowrevlog.setup()
    65     narrowrevlog.setup()
    64     narrowbundle2.setup()
    66     narrowbundle2.setup()
    65     narrowmerge.setup()
    67     narrowmerge.setup()
    66     narrowcommands.setup()
    68     narrowcommands.setup()
    67     narrowchangegroup.setup()
    69     narrowchangegroup.setup()