Changeset - 86bd75e0347c
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-09-14 02:08:06
mads@kiilerich.com
vcs: refactor hgcompat demandimport handling to prepare for Mercurial 4.3

See https://www.mercurial-scm.org/repo/hg/rev/0906b85bf222#l4.1 .

We might not need the hgcompat workaround any more - the d18500a8840c commit
message is not helpful in explaining exactly what problem it solved.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/utils/hgcompat.py
Show inline comments
 
@@ -3,9 +3,9 @@ Mercurial libs compatibility
 
"""
 

	
 
import mercurial
 
import mercurial.demandimport
 
from mercurial import demandimport
 
# patch demandimport, due to bug in mercurial when it always triggers demandimport.enable()
 
mercurial.demandimport.enable = lambda *args, **kwargs: 1
 
demandimport.enable = lambda *args, **kwargs: 1
 
from mercurial import archival, merge as hg_merge, patch, ui
 
from mercurial import discovery
 
from mercurial import localrepo
0 comments (0 inline, 0 general)