Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c1b4be6a
Commit
c1b4be6a
authored
Jan 23, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix -commit for new xml package
R=golang-dev, r CC=golang-dev
https://golang.org/cl/5571046
parent
ce2b0c0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
main.go
misc/dashboard/builder/main.go
+8
-8
No files found.
misc/dashboard/builder/main.go
View file @
c1b4be6a
...
...
@@ -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
=
`
<
l
og>
<
hash>{node|escape}</h
ash>
<
parent>{parent|escape}</p
arent>
<
author>{author|escape}</a
uthor>
<
date>{date|rfc3339date}</d
ate>
<
desc>{desc|escape}</d
esc>
</
l
og>
<
L
og>
<
Hash>{node|escape}</H
ash>
<
Parent>{parent|escape}</P
arent>
<
Author>{author|escape}</A
uthor>
<
Date>{date|rfc3339date}</D
ate>
<
Desc>{desc|escape}</D
esc>
</
L
og>
`
// 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
(
"<
top>"
+
data
+
"</t
op>"
),
&
logStruct
)
err
=
xml
.
Unmarshal
(
strings
.
NewReader
(
"<
Top>"
+
data
+
"</T
op>"
),
&
logStruct
)
if
err
!=
nil
{
log
.
Printf
(
"unmarshal hg log: %v"
,
err
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment