* viewcvs/lib/viewcvs.py

(common_template_data): Show a non-empty root listing when there is
    a non-empty list of roots, regardless of the size of that list.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1107 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2005-09-26 19:34:41 +00:00
parent 701452a3fb
commit 4a24ab0c36
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ def common_template_data(request):
# add in the roots for the selection
roots = []
allroots = list_roots(cfg)
if len(allroots) >= 2:
if len(allroots):
rootnames = allroots.keys()
rootnames.sort(icmp)
for rootname in rootnames: