From c1b4be6a4dbbdce9c69d028a8652731652d7babc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 23 Jan 2012 11:50:39 -0500 Subject: [PATCH] dashboard: fix -commit for new xml package R=golang-dev, r CC=golang-dev https://golang.org/cl/5571046 --- misc/dashboard/builder/main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index 1b00cf4737..6d8294271f 100644 --- a/misc/dashboard/builder/main.go +++ b/misc/dashboard/builder/main.go @@ -533,13 +533,13 @@ var logByHash = map[string]*HgLog{} // xmlLogTemplate is a template to pass to Mercurial to make // hg log print the log in valid XML for parsing with xml.Unmarshal. const xmlLogTemplate = ` - - {node|escape} - {parent|escape} - {author|escape} - {date|rfc3339date} - {desc|escape} - + + {node|escape} + {parent|escape} + {author|escape} + {date|rfc3339date} + {desc|escape} + ` // commitPoll pulls any new revisions from the hg server @@ -587,7 +587,7 @@ func commitPoll(key, pkg string) { var logStruct struct { Log []HgLog } - err = xml.Unmarshal(strings.NewReader(""+data+""), &logStruct) + err = xml.Unmarshal(strings.NewReader(""+data+""), &logStruct) if err != nil { log.Printf("unmarshal hg log: %v", err) return -- 2.50.0