[Buildbot-commits] buildbot/buildbot/status/web base.py,1.9,1.10

Brian Warner warner at users.sourceforge.net
Tue Sep 25 22:50:42 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30113/buildbot/status/web

Modified Files:
	base.py 
Log Message:
[project @ buildbot.status.web.base: add comments to path_to_root]

Original author: warner at lothar.com
Date: 2007-09-25 22:48:15+00:00

Index: base.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/base.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- base.py	25 Sep 2007 22:50:31 -0000	1.9
+++ base.py	25 Sep 2007 22:50:40 -0000	1.10
@@ -163,6 +163,10 @@
         return request.site.buildbot_service.parent.change_svc
 
     def path_to_root(self, request):
+        # /waterfall : ['waterfall'] -> ''
+        # /somewhere/lower : ['somewhere', 'lower'] -> '../'
+        # /somewhere/indexy/ : ['somewhere', 'indexy', ''] -> '../../'
+        # / : [] -> ''
         if request.prepath:
             segs = len(request.prepath) - 1
         else:





More information about the Commits mailing list