Files
@ d18500a8840c
Branch filter:
Location: kallithea/rhodecode/lib/vcs/utils/hgcompat.py - annotation
d18500a8840c
1.2 KiB
text/x-python
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.
in mercurial 2.5.0. Demand import is always enabled
after importing hooks. .Rhodecode doesn't work with
it.
31ebf7010566 31ebf7010566 31ebf7010566 324ac367a4da 3208aaefc9ca d18500a8840c d18500a8840c d18500a8840c 324ac367a4da 3208aaefc9ca 3208aaefc9ca 3208aaefc9ca 3208aaefc9ca 324ac367a4da 324ac367a4da 324ac367a4da 3208aaefc9ca 324ac367a4da 324ac367a4da 324ac367a4da 324ac367a4da 324ac367a4da 17ff5693566b acc05c33cc0c 5070c840dc23 3208aaefc9ca d7488551578e 3208aaefc9ca 3208aaefc9ca d7488551578e d7488551578e d7488551578e d7488551578e | """
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
from mercurial import scmutil
from mercurial import config
from mercurial.commands import clone, nullid, pull
from mercurial.context import memctx, memfilectx
from mercurial.error import RepoError, RepoLookupError, Abort
from mercurial.hgweb import hgweb_mod
from mercurial.hgweb.common import get_contact
from mercurial.localrepo import localrepository
from mercurial.match import match
from mercurial.mdiff import diffopts
from mercurial.node import hex
from mercurial.encoding import tolocal
from mercurial.discovery import findcommonoutgoing
from mercurial.hg import peer
from mercurial.httppeer import httppeer
from mercurial.util import url as hg_url
from mercurial.scmutil import revrange
from mercurial.node import nullrev
# those authnadlers are patched for python 2.6.5 bug an
# infinit looping when given invalid resources
from mercurial.url import httpbasicauthhandler, httpdigestauthhandler
|