Mercurial > hgsubversion
view hgsubversion/svnwrap/__init__.py @ 678:26ff4564a123
svnwrap: suggest installing Subvertpy when no bindings are present
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 11 Aug 2010 19:57:35 +0200 |
parents | d81e0abb2d27 |
children | 703f33576ad8 |
line wrap: on
line source
"""This is a special package because it contains (or will contain, as of now) two parallel implementations of the same code. One implementation, the original, uses the SWIG Python bindings. That's great, but those leak RAM and have a few other quirks. The goal is to have this file automatically contain the "best" available implementation without the user having to configure what is actually present. """ from common import * try: from subvertpy_wrapper import * except ImportError, e: try: from svn_swig_wrapper import * except ImportError: # propagate the subvertpy error; it's easier to install import subvertpy_wrapper