dashboard: use correct hg template for parents

The 'parents' field is documented to be blank if there's only one
simple parent. We want 'p1node', which is the hex commit of the
first parent.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/142530043
This commit is contained in:
Brad Fitzpatrick 2014-09-23 14:56:02 -07:00
parent e94ae77171
commit e06c202657
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ type HgLog struct {
const xmlLogTemplate = `
<Log>
<Hash>{node|escape}</Hash>
<Parent>{parents}</Parent>
<Parent>{p1node}</Parent>
<Author>{author|escape}</Author>
<Date>{date|rfc3339date}</Date>
<Desc>{desc|escape}</Desc>