diff mercurial/bundle2.py @ 22953:b1d694d3975e

obsolete: add exchange option This adds an option that enables obsolete marker exchange.
author Durham Goode <durham@fb.com>
date Tue, 14 Oct 2014 13:26:01 -0700
parents 9ea2913e7c41
children 4df9b5e62f70
line wrap: on
line diff
--- a/mercurial/bundle2.py	Tue Oct 14 13:25:13 2014 -0700
+++ b/mercurial/bundle2.py	Tue Oct 14 13:26:01 2014 -0700
@@ -788,7 +788,7 @@
     Exists to allow extensions (like evolution) to mutate the capabilities.
     """
     caps = capabilities.copy()
-    if obsolete._enabled:
+    if obsolete.isenabled(repo, obsolete.exchangeopt):
         supportedformat = tuple('V%i' % v for v in obsolete.formats)
         caps['b2x:obsmarkers'] = supportedformat
     return caps