=========
svnhelper
=========

svnhelper provide some svn utils to import and checkout some package in a cleaner way.

It also provide a svn testing framework for python

Import
------

Create a virtualenv dir::

  >>> dirname = create_tempdir()

Initialise a test package::

  >>> init_test_package(test_package)

A small function to run python command::

  >>> def py(*args):
  ...     assert 0 == os.system(sys.executable + ' ' + ' '.join(args))

Running develop on svnhelper to get entry points in the new virtualenv::

  >>> py('setup.py develop')

Go to test package dir::

  >>> os.chdir(package_dir)

Our package is not under subversion::

  >>> ls(package_dir)
  - LICENSE
  d my
  - setup.py

Now using entry point to import our package in the repository::

  >>> py('setup.py svn -i', repository)

The local package now have .svn directories and .egg-info::

  >>> ls(package_dir)
  d .svn
  - LICENSE
  d my
  d my.testing.egg-info
  - setup.py


