Mercurial > kallithea
changeset 6880:86bd75e0347c
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 14 Sep 2017 02:08:06 +0200 |
parents | 5f1af779bddf |
children | 02fcbd2e4d95 |
files | kallithea/lib/vcs/utils/hgcompat.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/utils/hgcompat.py Thu Sep 14 02:08:06 2017 +0200 +++ b/kallithea/lib/vcs/utils/hgcompat.py Thu Sep 14 02:08:06 2017 +0200 @@ -3,9 +3,9 @@ """ 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