rvanlaar/djangorecipe — Issue #4: version = 1.0 fails within an svn project
Author: rvanlaar
Created: 2011-12-27 21:40:01+00:00
State: open
Labels: Fix Released, High

This happens because is_svn_url() returns 0 whenever it is called inside an svn-versioned directory.

$ ls -A
.svn branches tags trunk
$ svn info 1.0
1.0: (Not a versioned resource)
$ echo $?
0

Since the documented version specs are 'trunk', a version number, or a full url, is_svn_url() could be something like

return version == 'trunk' or is_valid_url(version)

Off the top of my head, I don't know what is_valid_url() would look like.