Get the svn repository url
(work_path)
| 2 | import pysvn, re |
| 3 | |
| 4 | def repos(work_path): |
| 5 | "Get the svn repository url" |
| 6 | info = pysvn.Client().info(work_path) |
| 7 | |
| 8 | if info.repos: |
| 9 | return info.repos |
| 10 | |
| 11 | # special case - checked out the trunk |
| 12 | if info.url.endswith("/trunk"): |
| 13 | return re.sub(r"/trunk$", "", info.url) |
| 14 | |
| 15 | # default to the current dir's url |
| 16 | return info.url |
| 17 | |
| 18 | def authors(repos): |
| 19 | "Get the authors who have commited to the repository, one name per commit" |
no test coverage detected