evolve: drop some pre-3.0 compatibility code
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 19 May 2014 17:43:31 -0700
changeset 941 576d3a198269
parent 940 0523c7c63759
child 942 010c7e4aa820
evolve: drop some pre-3.0 compatibility code This extension already requires Mercurial 3.0
hgext/evolve.py
--- a/hgext/evolve.py	Mon May 19 17:45:28 2014 -0700
+++ b/hgext/evolve.py	Mon May 19 17:43:31 2014 -0700
@@ -2567,10 +2567,7 @@
 
 @eh.extsetup
 def _installwireprotocol(ui):
-    try:
-        localrepo.moderncaps.add('_evoext_pullobsmarkers_0')
-    except AttributeError:
-        localrepo.MODERNCAPS.add('_evoext_pullobsmarkers_0')
+    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'