changeset 3944:d18500a8840c beta

Patch demandimport.enable because of bug introduced in mercurial 2.5.0. Demand import is always enabled after importing hooks. .Rhodecode doesn't work with it.
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 04 Jun 2013 12:50:46 +0200
parents a5bccf34c512
children 535be0731523
files rhodecode/lib/vcs/utils/hgcompat.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/vcs/utils/hgcompat.py	Tue Jun 04 11:09:40 2013 +0200
+++ b/rhodecode/lib/vcs/utils/hgcompat.py	Tue Jun 04 12:50:46 2013 +0200
@@ -3,6 +3,9 @@
 """
 
 import mercurial
+import mercurial.demandimport
+## patch demandimport, due to bug in mercurial when it allways triggers demandimport.enable()
+mercurial.demandimport.enable = lambda *args, **kwargs: 1
 from mercurial import archival, merge as hg_merge, patch, ui
 from mercurial import discovery
 from mercurial import localrepo