Mercurial > hgsubversion
changeset 1102:7635d30effa7
layouts: add importerror ladder so hgsubversion works as an installed module
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 17 Jan 2014 11:07:58 -0500 |
parents | 4a92eb1484ba |
children | 6e1dbf6cbc92 |
files | hgsubversion/layouts/detect.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/layouts/detect.py +++ b/hgsubversion/layouts/detect.py @@ -25,7 +25,10 @@ def layout_from_subversion(svn, revision """ # import late to avoid trouble when running the test suite - from hgext_hgsubversion import svnwrap + try: + from hgext_hgsubversion import svnwrap + except ImportError: + from hgsubversion import svnwrap try: rootlist = svn.list_dir('', revision=revision)