Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install infrae.subversion

How to install infrae.subversion

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install infrae.subversion
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.4.5 Available View build log
Windows (64-bit)
1.4.5 Available View build log
Mac OS X (10.5+)
1.4.5 Available View build log
Linux (32-bit)
1.4.5 Available View build log
Linux (64-bit)
1.4.5 Available View build log
 
License
ZPL 2.1
Dependencies
Lastest release
version 1.4.5 on Jan 5th, 2011

This zc.buildout recipe will check out a number of URLs into its parts directory. It won't remove its parts directory if there are any changes in the checkout, so it's safe to work with that checkout for development.

This is an example buildout part that uses this recipe:

[development-products]

System Message: ERROR/3 (<string>, line 12)

Inconsistent literal block quoting.

recipe = infrae.subversion urls = https://svn.plone.org/svn/collective/PDBDebugMode/trunk PDBDebugMode

This will maintain a working copy of PDBDebugMode in the parts/development-products/PDBDebugMode directory (not in the parts directory itself). Thus, the recipe handles multiple URLs fine.

You can select a different location with location, for instance:

System Message: WARNING/2 (<string>, line 22)

Literal block expected; none found.

location = src

Will extract PDBDebugMode in src/PDBDebugMode instead of parts.

If you have pysvn installed on the computer, it will be used. This implies better performances.

Update

By default, when buildout update the part, an svn up is done for each link. However, when a revision number is specified like this:

System Message: WARNING/2 (<string>, line 36)

Literal block expected; none found.

https://svn.infrae.com/buildout/infrae.subversion/trunk@27829

The SVN link is skipped for update. If you want to prevent update for all SVN link of the part even if they do not contain revision number, you can add the following option:

System Message: WARNING/2 (<string>, line 42)

Literal block expected; none found.

ignore_updates = true

Export

With pysvn installed, you can specify:

System Message: WARNING/2 (<string>, line 49)

Literal block expected; none found.

export = true

in your buildout part to get an SVN export instead of an SVN checkout.

Verification

By default, your checkout are checked against local modification before any uninstallation step. This can take time on large checkouts, and you may don't want it in some case (like when used on buildbot for instance). To prevent this step, you can use this option:

System Message: WARNING/2 (<string>, line 61)

Literal block expected; none found.

ignore_verification = true

As well, when the recipe update it can emit some warnings because a directory have been removed. You can suppress that warning with:

System Message: WARNING/2 (<string>, line 66)

Literal block expected; none found.

no_warnings = true

The verification will still be done, and the directory will be checked out again to replace the missing one.

Eggs

If you set the option as_eggs in your configuration file, checkouted URLs will be registered as development eggs in your buildout. This only work for non-recipe development eggs.

Warning

If you add a new egg, this will trigger a new

System Message: WARNING/2 (<string>, line 79)

Explicit markup ends without a blank line; unexpected unindent.

uninstall-reinstall cycle. You may want to use that option to setup eggs coming from SVN for production, but not for development.

Exported Variables

If you set:

System Message: WARNING/2 (<string>, line 87)

Literal block expected; none found.

export_info = true

Two variables will be exported by this recipe:

  • revisions which gives for each URL the corresponding revision

System Message: WARNING/2 (<string>, line 92)

Bullet list ends without a blank line; unexpected unindent.

number,

  • updated which gives a list of URLs which have been updated with

System Message: WARNING/2 (<string>, line 95)

Bullet list ends without a blank line; unexpected unindent.

new code.

Since values to these variables changes each time you run buildout (revision number changes), this trigger an uninstall/reinstall of the part. We recommand to activate it only if you need it.

Is always exported a variable location to say where are done the checkouts, and a variable eggs which contains a list of checkouted eggs.

Sample

For an example buildout that uses this recipe, please see the Silva buildout.

As well, the doctest file can provide more sample.

Latest version

The latest version is available in a Subversion repository.

Changes

1.4.5 (2009-01-29)
  • Fix an error when some path have been added to the checkout

System Message: WARNING/2 (<string>, line 129)

Bullet list ends without a blank line; unexpected unindent.

path. [eric]

  • Still eggify and export information on update when running as

System Message: WARNING/2 (<string>, line 132)

Bullet list ends without a blank line; unexpected unindent.

non-newest mode. [sylvain]

1.4.4 (2009-01-28)
  • Add a no_warnings options which remove some warnings when

System Message: WARNING/2 (<string>, line 138)

Bullet list ends without a blank line; unexpected unindent.

updating a part. [sylvain]

1.4.3 (2009-01-21)
  • Add a login callback for people using PySVN. This let users

System Message: WARNING/2 (<string>, line 144)

Bullet list ends without a blank line; unexpected unindent.

authenticate to an unauthorized svn. Thanks to Martin Stadler (martin at siarp.de) for this fix. [sylvain]

1.4.2 (2009-01-05)
  • Automatically ignore .pyc and .pyo files while checking for

System Message: WARNING/2 (<string>, line 151)

Bullet list ends without a blank line; unexpected unindent.

modified/added/removed files. [sylvain]

  • Fix bug so .svn directory is really ignored when checking for

System Message: WARNING/2 (<string>, line 154)

Bullet list ends without a blank line; unexpected unindent.

added paths in the checkout directory. [sylvain]

1.4.1 (2008-10-31)

Bug fix:

  • Correct typo in README.txt. [sylvain]
  • Ignore .svn directory when checking for added ones at

System Message: WARNING/2 (<string>, line 164)

Bullet list ends without a blank line; unexpected unindent.

uninstall. [sylvain]

1.4 (2008-10-31)

New features:

  • Added location option that allows you to override the default

System Message: WARNING/2 (<string>, line 172)

Bullet list ends without a blank line; unexpected unindent.

/parts/partname location. [reinout]

  • Added as_eggs option that installs the checkouts as development

System Message: WARNING/2 (<string>, line 175)

Bullet list ends without a blank line; unexpected unindent.

eggs. [reinout]

Bug fix:

  • Don't export revisions information if you're offline with Py. Py

System Message: WARNING/2 (<string>, line 180)

Bullet list ends without a blank line; unexpected unindent.

tries to connect to the SVN repository to do a 'svn info'. [sylvain]

1.3.1

Bug fix:

  • don't try to collect export information if you have a svn

System Message: WARNING/2 (<string>, line 188)

Bullet list ends without a blank line; unexpected unindent.

export. [sylvain]

  • path were exported instead of URLs in the Native

System Message: WARNING/2 (<string>, line 191)

Bullet list ends without a blank line; unexpected unindent.

implementation. [sylvain]

1.3
  • Remove the restriction to py 0.9.0, now that py 0.9.2 is out and fix

System Message: WARNING/2 (<string>, line 197)

Bullet list ends without a blank line; unexpected unindent.

problems on svn status with strange userid. [sylvain]

  • Correct an error rendering. [sylvain]
  • Export information only for top level svn URLs in the native

System Message: WARNING/2 (<string>, line 202)

Bullet list ends without a blank line; unexpected unindent.

implementation, this used to inject information from svn:externals links included in URL list. [sylvain]

  • Add tests for export information feature. [tlotze]
  • Correct URL in setup.py [sylvain].
1.2
  • Refactor code, performances should be better at uninstall with Py

System Message: WARNING/2 (<string>, line 213)

Bullet list ends without a blank line; unexpected unindent.

implementation [sylvain].

  • Look for the environment variable INFRAE_SUBVERSION_IMPL to

System Message: WARNING/2 (<string>, line 216)

Bullet list ends without a blank line; unexpected unindent.

select which implementation to use. Possible values are PYSVN (default) and PY [sylvain].

  • Uninstall only look at directory which have been created by the

System Message: WARNING/2 (<string>, line 220)

Bullet list ends without a blank line; unexpected unindent.

recipe in the part. Other are just reported [sylvain].

  • Export two new variables, if export_info is set to true:

revisions

Which is lines formatted:

System Message: WARNING/2 (<string>, line 228)

Literal block expected; none found.

link current_revision

updated

Which is lines containing updated links.

[sylvain].

1.1
  • Add the ignore_verification option [sylvain].
1.0
  • Base version of the recipe.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:6

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.