Skip to content
Snippets Groups Projects
Commit 9c390233 authored by Georges Racinet's avatar Georges Racinet
Browse files

hg-git: prepared import for future relocation to hgext3rd

The move to `hgext3rd.hggit` is about to happen and will be
released first with version 0.11.0
parent b9d195f1
Branches
Tags
No related merge requests found
Pipeline #22332 failed
......@@ -46,5 +46,5 @@
demandimport.IGNORES.update([b'brotli', b'simplejson'])
try:
import hggit
from hgext3rd import hggit
hggit.__doc__ # forcing demandimport to import it
......@@ -50,6 +50,10 @@
hggit.__doc__ # forcing demandimport to import it
except ImportError: # pragma no cover
hggit = None
except ImportError: # pragma no cover (fallback for hg-git < 0.11)
try:
import hggit
hggit.__doc__
except ImportError:
hggit = None
eh = exthelper.exthelper()
......
......@@ -11,7 +11,11 @@
"""
from __future__ import absolute_import
from hggit.git_handler import GitHandler
try:
from hgext3rd.hggit.git_handler import GitHandler
except ImportError: # pragma: no cover (fallback for hg-git < 0.11)
from hggit.git_handler import GitHandler
from heptapod.gitlab.branch import (
gitlab_branch_from_ref as git_branch_from_ref,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment