# HG changeset patch # User Marcin Kuzminski # Date 2013-06-04 12:50:46 # 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 --git a/rhodecode/lib/vcs/utils/hgcompat.py b/rhodecode/lib/vcs/utils/hgcompat.py --- a/rhodecode/lib/vcs/utils/hgcompat.py +++ b/rhodecode/lib/vcs/utils/hgcompat.py @@ -3,6 +3,9 @@ Mercurial libs compatibility """ 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