# HG changeset patch # User Marcin Kuzminski # Date 1370343046 -7200 # Node ID d18500a8840c14645e516f0dad9d33a3d72924b1 # Parent a5bccf34c5126e31bc54c01625c69260d6ad63f1 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. diff -r a5bccf34c512 -r d18500a8840c rhodecode/lib/vcs/utils/hgcompat.py --- 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