mirror of
https://github.com/golang/go
synced 2024-11-22 05:54:40 -07:00
misc/dashboard/builder: talk to hg with utf-8 encoding always.
Fixes #1465. R=rsc CC=golang-dev https://golang.org/cl/4172063
This commit is contained in:
parent
bd44684fa0
commit
7f5acfb283
@ -46,7 +46,12 @@ func getCommit(rev string) (c Commit, err os.Error) {
|
|||||||
func getCommitParts(rev string) (parts []string, err os.Error) {
|
func getCommitParts(rev string) (parts []string, err os.Error) {
|
||||||
const format = "{rev}>{node}>{author|escape}>{date}>{desc}"
|
const format = "{rev}>{node}>{author|escape}>{date}>{desc}"
|
||||||
s, _, err := runLog(nil, "", goroot,
|
s, _, err := runLog(nil, "", goroot,
|
||||||
"hg", "log", "-r", rev, "-l", "1", "--template", format)
|
"hg", "log",
|
||||||
|
"--encoding", "utf-8",
|
||||||
|
"--rev", rev,
|
||||||
|
"--limit", "1",
|
||||||
|
"--template", format,
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user