Commits

Matt Mackall  committed fe08900

evolve: fix evolve with mercurial default

MODERNCAPS have been renamed to moderncaps upstream.

  • Participants
  • Parent commits 6cb81db
  • Branches default

Comments (0)

Files changed (1)

File hgext/evolve.py

 
 @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'