Commits

Augie Fackler committed 7635d30

layouts: add importerror ladder so hgsubversion works as an installed module

Comments (0)

Files changed (1)

hgsubversion/layouts/detect.py

 
     """
     # 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)