1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:34:39 -07:00

dashboard/app: add review subrepo, link changes correctly

Change-Id: I1eeea2beb4ffab690b2bb005c08a08d7e41c1fc3
Reviewed-on: https://go-review.googlesource.com/1503
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Andrew Gerrand 2014-12-13 14:49:54 +11:00
parent 551edbff13
commit 05fa16d285
2 changed files with 10 additions and 1 deletions

View File

@ -160,6 +160,11 @@ var goPackages = []*Package{
Name: "net", Name: "net",
Path: "golang.org/x/net", Path: "golang.org/x/net",
}, },
{
Kind: "subrepo",
Name: "review",
Path: "golang.org/x/review",
},
{ {
Kind: "subrepo", Kind: "subrepo",
Name: "sys", Name: "sys",

View File

@ -435,7 +435,11 @@ func repoURL(dashboard, hash, packagePath string) (string, error) {
if dashboard == "Gccgo" { if dashboard == "Gccgo" {
return "https://code.google.com/p/gofrontend/source/detail?r=" + hash, nil return "https://code.google.com/p/gofrontend/source/detail?r=" + hash, nil
} }
return "https://golang.org/change/" + hash, nil if dashboard == "Mercurial" {
return "https://golang.org/change/" + hash, nil
}
// TODO(adg): use the above once /change/ points to git hashes
return "https://go.googlesource.com/go/+/" + hash, nil
} }
// TODO(adg): remove this old hg stuff, one day. // TODO(adg): remove this old hg stuff, one day.