Mercurial > evolve
comparison hgext/evolve.py @ 886:fe089007c466
evolve: fix evolve with mercurial default
MODERNCAPS have been renamed to moderncaps upstream.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 18 Mar 2014 12:59:49 -0700 |
parents | d2fa1061df16 |
children | 0ea9cecbbd28 |
comparison
equal
deleted
inserted
replaced
885:6cb81dbb9516 | 886:fe089007c466 |
---|---|
2462 return caps | 2462 return caps |
2463 | 2463 |
2464 | 2464 |
2465 @eh.extsetup | 2465 @eh.extsetup |
2466 def _installwireprotocol(ui): | 2466 def _installwireprotocol(ui): |
2467 localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') | 2467 try: |
2468 localrepo.moderncaps.add('_evoext_pullobsmarkers_0') | |
2469 except AttributeError: | |
2470 localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') | |
2468 hgweb_mod.perms['evoext_pushobsmarkers_0'] = 'push' | 2471 hgweb_mod.perms['evoext_pushobsmarkers_0'] = 'push' |
2469 hgweb_mod.perms['evoext_pullobsmarkers_0'] = 'pull' | 2472 hgweb_mod.perms['evoext_pullobsmarkers_0'] = 'pull' |
2470 hgweb_mod.perms['evoext_obshash'] = 'pull' | 2473 hgweb_mod.perms['evoext_obshash'] = 'pull' |
2471 wireproto.commands['evoext_pushobsmarkers_0'] = (srv_pushobsmarkers, '') | 2474 wireproto.commands['evoext_pushobsmarkers_0'] = (srv_pushobsmarkers, '') |
2472 wireproto.commands['evoext_pullobsmarkers_0'] = (srv_pullobsmarkers, '*') | 2475 wireproto.commands['evoext_pullobsmarkers_0'] = (srv_pullobsmarkers, '*') |