Mercurial > hgsubversion
comparison hgsubversion/__init__.py @ 1567:4442a2f42843
hgsubversion: work around loss of demandimport alias
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 26 May 2018 17:33:10 -0400 |
parents | 0099cf9a9a8b |
children | 7da8a38ff969 |
comparison
equal
deleted
inserted
replaced
1566:c28c757ffe16 | 1567:4442a2f42843 |
---|---|
30 from mercurial import extensions | 30 from mercurial import extensions |
31 from mercurial import help | 31 from mercurial import help |
32 from mercurial import hg | 32 from mercurial import hg |
33 from mercurial import localrepo | 33 from mercurial import localrepo |
34 from mercurial import util as hgutil | 34 from mercurial import util as hgutil |
35 from mercurial import demandimport | 35 try: |
36 demandimport.ignore.extend([ | 36 from mercurial import demandimport |
37 'svn', | 37 demandimport.ignore.extend([ |
38 'svn.client', | 38 'svn', |
39 'svn.core', | 39 'svn.client', |
40 'svn.delta', | 40 'svn.core', |
41 'svn.ra', | 41 'svn.delta', |
42 'svn.ra', | |
42 ]) | 43 ]) |
44 except (ImportError, AttributeError): | |
45 from hgdemandimport import demandimport | |
46 demandimport.ignores |= { | |
47 'svn', | |
48 'svn.client', | |
49 'svn.core', | |
50 'svn.delta', | |
51 'svn.ra', | |
52 } | |
43 | 53 |
44 from mercurial import revset | 54 from mercurial import revset |
45 from mercurial import subrepo | 55 from mercurial import subrepo |
46 | 56 |
47 import svncommands | 57 import svncommands |