##// END OF EJS Templates
logging: use just func names for logs instead of objects with memory address (doesn't give any valueable info)
logging: use just func names for logs instead of objects with memory address (doesn't give any valueable info)

File last commit:

r718:77c4e169 stable
r778:eaf5cd79 default
Show More
hgcompat.py
74 lines | 2.6 KiB | text/x-python | PythonLexer
initial commit
r0 # RhodeCode VCSServer provides access to different vcs backends via network.
docs: updated copyrights to 2019
r620 # Copyright (C) 2014-2019 RhodeCode GmbH
initial commit
r0 #
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""
Mercurial libs compatibility
"""
import mercurial
mercurial: fixed code against latest mercurial release....
r310 from mercurial import demandimport
initial commit
r0 # patch demandimport, due to bug in mercurial when it always triggers
# demandimport.enable()
mercurial: fixed code against latest mercurial release....
r310 demandimport.enable = lambda *args, **kwargs: 1
initial commit
r0
from mercurial import ui
from mercurial import patch
from mercurial import config
from mercurial import extensions
from mercurial import scmutil
from mercurial import archival
from mercurial import discovery
from mercurial import unionrepo
from mercurial import localrepo
from mercurial import merge as hg_merge
Martin Bornhold
subrepo: Add patch to turn off mercurial subrepo handling.
r97 from mercurial import subrepo
mercurial: use tags module as repo function is deprecated as of 4.2
r274 from mercurial import tags as hg_tag
initial commit
r0
from mercurial.commands import clone, nullid, pull
from mercurial.context import memctx, memfilectx
from mercurial.error import (
LookupError, RepoError, RepoLookupError, Abort, InterventionRequired,
Mercurial: fixed lookup for hg 4.9
r657 RequirementError, ProgrammingError)
initial commit
r0 from mercurial.hgweb import hgweb_mod
Mercurial: addeed mercurial 4.9 support
r656 from mercurial.localrepo import instance
initial commit
r0 from mercurial.match import match
from mercurial.mdiff import diffopts
from mercurial.node import bin, hex
from mercurial.encoding import tolocal
from mercurial.discovery import findcommonoutgoing
from mercurial.hg import peer
mercurial: fix problems with latest httppeer changes in mercurial 4.6 series.
r457 from mercurial.httppeer import makepeer
initial commit
r0 from mercurial.util import url as hg_url
Mercurial: fixed lookup for hg 4.9
r657 from mercurial.scmutil import revrange, revsymbol
initial commit
r0 from mercurial.node import nullrev
from mercurial import exchange
from hgext import largefiles
# those authnadlers are patched for python 2.6.5 bug an
# infinit looping when given invalid resources
from mercurial.url import httpbasicauthhandler, httpdigestauthhandler
hg: added compat for fetching revision using new hg 4.9 code
r660
def get_ctx(repo, ref):
try:
ctx = repo[ref]
except ProgrammingError:
# we're unable to find the rev using a regular lookup, we fallback
# to slower, but backward compat revsymbol usage
ctx = revsymbol(repo, ref)
return ctx