Files
@ 1e8b300b0540
Branch filter:
Location: kallithea/kallithea/lib/vcs/utils/hgcompat.py - annotation
1e8b300b0540
1.3 KiB
text/x-python
hg: bump minimum version to 5.1
We will soon move to Python 3 which only will support 5.1 or later.
Remove old hacks and tech debt.
Also avoids future warning:
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
We will soon move to Python 3 which only will support 5.1 or later.
Remove old hacks and tech debt.
Also avoids future warning:
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 0a277465fddf 1e8b300b0540 c363f492c117 eb337bdaa0e1 c363f492c117 | """
Mercurial libs compatibility
"""
import mercurial
from mercurial import archival, config, demandimport, discovery, httppeer, localrepo
from mercurial import merge as hg_merge
from mercurial import obsutil, patch, scmutil, sshpeer, ui, unionrepo
from mercurial.commands import clone, nullid, pull
from mercurial.context import memctx, memfilectx
from mercurial.discovery import findcommonoutgoing
from mercurial.encoding import tolocal
from mercurial.error import Abort, RepoError, RepoLookupError
from mercurial.hg import peer
from mercurial.hgweb import hgweb_mod
from mercurial.hgweb.common import get_contact
from mercurial.match import exact as match_exact
from mercurial.match import match
from mercurial.mdiff import diffopts
from mercurial.node import hex, nullrev
from mercurial.scmutil import revrange
from mercurial.tags import tag
from mercurial.url import httpbasicauthhandler, httpdigestauthhandler
from mercurial.util import url as hg_url
# workaround for 3.3 94ac64bcf6fe and not calling largefiles reposetup correctly, and test_archival failing
localrepo.localrepository._lfstatuswriters = [lambda *msg, **opts: None]
# 3.5 7699d3212994 added the invariant that repo.lfstatus must exist before hitting overridearchive
localrepo.localrepository.lfstatus = False
|