Skip to main content

Contains hooks and utilities for Subversion

Project description

What is iw.subversion ?

This package contains helpers for SVN integration. To install it, just run:

$ python setup.py install

svn_check_source

In a community project, opened to various contributors, there are a few things to take care of in order not to break the code. I am not talking about code reviewing but about bad code editing that brakes it all.

Most frequent errors are:

  • <tab> insertions, that get mixed with space-based indentation

  • carriage return insertion, before line feeds with some weird windows editors

Instead of tracking the developers that commited such things, and send them an army of white rabbits, an automatic code check is way better. It is not a good idea though, to clean up incoming code. The best thing to do is to block unwanted changes and warn the commiters, so they learn about it.

iw.subversion provides a svn_check_source console script to do it. This script has to be called in the pre-commit hook script (look up in SVN documentation). The call should look like:

svn_check_source "$REPOS" "$TXN" || exit 1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iw.subversion-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file iw.subversion-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iw.subversion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e46a71e6a21a1fe2cae7c7fa7287e566e2990b9128af08260e1d67b10a31f6c0
MD5 e70a3e722ccec6fa98745d09df7273fe
BLAKE2b-256 4d012a44428181de7cbded93832c4e4b8a13189611f34eeef0aff53553a053b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page