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 svnpoller

How to install svnpoller

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install svnpoller
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.10 Available View build log
0.0.9 Available View build log
Windows (64-bit)
0.0.10 Available View build log
0.0.9 Available View build log
Mac OS X (10.5+)
0.0.10 Available View build log
0.0.9 Available View build log
Linux (32-bit)
0.0.10 Available View build log
0.0.9 Available View build log
Linux (64-bit)
0.0.10 Available View build log
0.0.9 Available View build log
 
License
PSL
Dependencies
Lastest release
version 0.0.10 on Jan 5th, 2011
`svnpoller` watches target SVN repositories regularly and transmits a
commit-mail to the designated notify party about each commit when there
are new commits.

Setting sample
--------------

svnpoller.ini::

[mail]
smtpserver = localhost
fromaddr = admin@example.com

[sample-section]
url = http://svn.example.org/path/to/repos/with/sub/path
address = test1@example.com, test2@example.com


Notify mail sample
-------------------

Notified mail sample::

From: admin@example.com
To: test1@example.com, test2@example.com
Subject: [sample-section: 1230]

* Revision: 1230
* Author: foo
* Date: 2009-11-22T17:40:47.287888Z
* Message:
The commit log message for this revision here.

* Paths:
M /with/sub/path/somefile1.py
A /with/sub/path/somefile2.py

* Diff:
Index: somefile1.py
===================================================================
--- somefile1.py     (revision 1230)
+++ somefile1.py     (revision 1229)


Requirements
------------

* Python 2.4 or later (not support 3.x)


Dependencies
------------

* `setuptools `_ or
`distribute `_

* svn external command (1.4 or later)

* `lxml` (optional)


Features
--------

* polling specified svn repository

* send commit message and diff by email


Setup
-----

Make environment (by easy_install)::

$ easy_install svnpoller


Make environment (by buildout)::

$ hg clone http://bitbucket.org/shimizukawa/svnpoller
$ cd svnpoller
$ python bootstrap.py
$ bin/buildout


Copy and modify ini file. example::

$ cp /svnpoller/svnpoller.ini .
$ vi svnpoller.ini

Please refer to `Setting sample`_ section for the format of the
`svnpoller.ini` configuration file.

Usage
-----

Execute svnpoller command::

$ svnpoller svnpoller.ini

or setup cron job::

$ crontab -e
0 0 * * * /path/to/svnpoller /path/to/svnpoller.ini


History
-------

0.0.10 (2010-9-16)
~~~~~~~~~~~~~~~~~~
* Fix: svnpoller exec 'svn diff -r100 ' for check revision 10000 that
command mean 'svn diff -r100:HEAD ' then if HEAD=10000 svnpoller
take long time and large svn diff output.


0.0.9 (2010-6-23)
~~~~~~~~~~~~~~~~~~
* Fix: commit message include multi-byte charactor cause exception.
* Remove: `lxml` dependency, become optional
(thanks to 'Federico' for the patch!).
* Fix: Exception caused by error status return from svn command
when repository was not updated since last check
(thanks to 'Federico' for the patch!).
* Add: copy-only or delete-only or move-only diff are not attached
(thanks to 'Federico' for the patch!).

0.0.8 (2010-6-20)
~~~~~~~~~~~~~~~~~~
* Fix: Notify mail send only first address when multiple address
(comma separated) was specified on ini file.

0.0.7 (2010-6-18)
~~~~~~~~~~~~~~~~~~
* Fix: datetime.strptime replaced with time.strptime (for Python-2.4)
* Remove: `lxml` dependency. (if python-2.5 or later)
* Change: supported svn external command version: 1.4 or later

0.0.6 (2010-6-18)
~~~~~~~~~~~~~~~~~~
* Fix: latest revision's change ware notified every time.
* Add: some tests.

0.0.5 (2010-5-20)
~~~~~~~~~~~~~~~~~~
* Add changed `path-list` to mail-message.

0.0.4 (2010-5-20)
~~~~~~~~~~~~~~~~~~
* first release

Todos
------

Functionals
~~~~~~~~~~~~
* Add debug option '--debug / -d' for processing status output.
* Add log output option '--log / -l' by :mod:`logging`.
* Add filtering option for non-target file at same commit rev.
* Introduce customizable mail template.
* Remove base64 e-mail encoding always.
* Add e-mail encoding (now using base64 encoded utf-8)
* Add notify mechanism when lost target (maybe repository structure was changed)
* Add setting for the filtering of the file which it was saved at the same time, but is uninteresting.
* Add mercurial(hg) support.
* Add bazaar(bzr) support.
* Attach diff without printing in the main text.(config?)
* Speed-up for multi url polling.
* Add generating ini file automatically, or using Paster template.

Environments
~~~~~~~~~~~~~
* Refactoring.
* Add test: multi url polling
* Add test: Python2.4, 2.5, 2.6 support check.

Known Issues
~~~~~~~~~~~~~
* "--dry-run" update latest revision config value.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.