mirror of
https://github.com/golang/go
synced 2024-11-18 22:24:50 -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:
parent
551edbff13
commit
05fa16d285
@ -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",
|
||||||
|
@ -435,8 +435,12 @@ 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
|
||||||
}
|
}
|
||||||
|
if dashboard == "Mercurial" {
|
||||||
return "https://golang.org/change/" + hash, nil
|
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.
|
||||||
if dashboard == "Mercurial" {
|
if dashboard == "Mercurial" {
|
||||||
|
Loading…
Reference in New Issue
Block a user