comparison pylons_app/controllers/summary.py @ 277:7ec4463b6e53

fixed branches and tags, fetching for new vcs implementation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 13 Jun 2010 15:56:47 +0200
parents 3782a6d698af
children 237470e64bb8
comparison
equal deleted inserted replaced
276:5e59f29edf66 277:7ec4463b6e53
45 'protocol': e.get('wsgi.url_scheme'), 45 'protocol': e.get('wsgi.url_scheme'),
46 'user':str(c.hg_app_user.username), 46 'user':str(c.hg_app_user.username),
47 'host':e.get('HTTP_HOST'), 47 'host':e.get('HTTP_HOST'),
48 'repo_name':c.repo_name, } 48 'repo_name':c.repo_name, }
49 c.clone_repo_url = uri 49 c.clone_repo_url = uri
50 c.repo_tags = c.repo_info.tags[:10] 50 c.repo_tags = {}
51 c.repo_branches = c.repo_info.branches[:10] 51 for name, hash in c.repo_info.tags.items()[:10]:
52 c.repo_tags[name] = c.repo_info.get_changeset(hash)
53
54 c.repo_branches = {}
55 for name, hash in c.repo_info.branches.items()[:10]:
56 c.repo_branches[name] = c.repo_info.get_changeset(hash)
57
52 return render('summary/summary.html') 58 return render('summary/summary.html')