diff mercurial/pushkey.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 2f52a16f2bee
children 7b200566e474
line wrap: on
line diff
--- a/mercurial/pushkey.py	Tue Oct 14 13:25:13 2014 -0700
+++ b/mercurial/pushkey.py	Tue Oct 14 13:26:01 2014 -0700
@@ -11,7 +11,7 @@
     n = {}
     for k in _namespaces:
         n[k] = ""
-    if not obsolete._enabled:
+    if not obsolete.isenabled(repo, obsolete.exchangeopt):
         n.pop('obsolete')
     return n