Mercurial > hg > evolve
changeset 896: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 | 6cb81dbb9516 |
children | 0ea9cecbbd28 |
files | hgext/evolve.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -2464,7 +2464,10 @@ @eh.extsetup def _installwireprotocol(ui): - localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') + try: + localrepo.moderncaps.add('_evoext_pullobsmarkers_0') + except AttributeError: + localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0') hgweb_mod.perms['evoext_pushobsmarkers_0'] = 'push' hgweb_mod.perms['evoext_pullobsmarkers_0'] = 'pull' hgweb_mod.perms['evoext_obshash'] = 'pull'