Ejemplo n.º 1
0
def graph_commit(request, project_id, commit1, commit2 = None, type = None):
	pool = GoProjectSCMPool(settings.GOLANG_REPOS)
	com = pool.fetch_commit(project_id, commit1, commit2)
	com.reverse()
	return HttpResponse(makeSVG(pool.get_project(project_id).full_name, com, type), content_type='image/svg+xml')
Ejemplo n.º 2
0
def rest_commit(request, project_id, commit1, commit2 = None):
	pool = GoProjectSCMPool(settings.GOLANG_REPOS)
	res = pool.fetch_commit(project_id, commit1, commit2)
	return HttpResponse(json.dumps(res), content_type='application/json')