diff rhodecode/lib/utils.py @ 2689:73cfc54c87d5 beta

fixed the push_ssl issues after mercurial 2.3 upgrade. Set always to false, since rhodecode handles that by dedicated middleware.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 04 Aug 2012 19:28:38 +0200
parents 2b6939a77052
children 4c71667160e5
line wrap: on
line diff
--- a/rhodecode/lib/utils.py	Sat Aug 04 18:55:20 2012 +0200
+++ b/rhodecode/lib/utils.py	Sat Aug 04 19:28:38 2012 +0200
@@ -312,10 +312,14 @@
 
         hg_ui = ret
         for ui_ in hg_ui:
-            if ui_.ui_active and ui_.ui_key != 'push_ssl':
+            if ui_.ui_active:
                 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
                           ui_.ui_key, ui_.ui_value)
                 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
+            if ui_.ui_key == 'push_ssl':
+                # force set push_ssl requirement to False, rhodecode
+                # handles that
+                baseui.setconfig(ui_.ui_section, ui_.ui_key, False)
 
         meta.Session.remove()
     return baseui