[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - svnloader.py:1.6
Fred L. Drake, Jr.
fred at zope.com
Tue Apr 27 15:59:57 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv28999
Modified Files:
svnloader.py
Log Message:
add docstring
=== Packages/zpkgtools/zpkgtools/svnloader.py 1.5 => 1.6 ===
--- Packages/zpkgtools/zpkgtools/svnloader.py:1.5 Tue Apr 27 11:13:52 2004
+++ Packages/zpkgtools/zpkgtools/svnloader.py Tue Apr 27 15:59:51 2004
@@ -183,6 +183,14 @@
def split_on_tag(url):
+ """Try to split a Subversion URL into a prefix, tagname, and tail.
+
+ :param url: The URL to split.
+
+ This assumes the standard layout for projects in Subversion
+ repositories. Returns `None` if the standard layout appears not
+ to apply.
+ """
if "/tags/*/" in url:
parts = url.split("/tags/*/", 1)
tag = None
More information about the Zope-CVS
mailing list