-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
83 lines (72 loc) · 1.96 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package gosvn
import "encoding/xml"
type SvnLog struct {
XMLName xml.Name `xml:"log"`
LogEntry []logEntry `xml:"logentry"`
}
type logEntry struct {
Revision string `xml:"revision,attr"`
Msg string `xml:"msg"`
Author string `xml:"author"`
Date string `xml:"date"`
Paths paths `xml:"paths>path"`
}
type paths struct {
Path string `xml:",innerxml"`
Action string `xml:"action,attr"`
PropMods string `xml:"prop-mods,attr"`
TextMods string `xml:"text-mods,attr"`
Kind string `xml:"kind,attr"`
}
type Info struct {
XMLName xml.Name `xml:"info"`
Url string `xml:"entry>url"`
RelativeUrl string `xml:"entry>relative-url"`
Root string `xml:"entry>repository>root"`
UUID string `xml:"entry>repository>uuid"`
WcrootAbspath string `xml:"entry>wc-info>wcroot-abspath"`
Schedule string `xml:"entry>wc-info>schedule"`
Depth string `xml:"entry>wc-info>depth"`
Commit commit `xml:"entry>commit"`
}
type commit struct {
Revision string `xml:"revision,attr"`
Author string `xml:"author"`
Date string `xml:"date"`
}
type lists struct {
XMLName xml.Name `xml:"lists"`
List list `xml:"list"`
}
type list struct {
Path string `xml:"path,attr"`
Entry []entry `xml:"entry"`
}
type entry struct {
Kind string `xml:"kind,attr"`
Name string `xml:"name"`
Size string `xml:"size"`
Commit commit `xml:"commit"`
}
type diff struct {
Paths []diffPath `xml:"paths>path"`
}
type diffPath struct {
Props string `xml:"props,attr"`
Kind string `xml:"kind,attr"`
Item string `xml:"item,attr"`
Path string `xml:",innerxml"`
}
type status struct {
XMLName xml.Name `xml:"status"`
Target target `xml:"target"`
}
type target struct {
Path string `xml:"path,attr"`
Entry statusEntry `xml:"entry"`
}
type statusEntry struct {
Path string `xml:"path,attr"`
WcStatusItem string `xml:"wc-status>item,attr"`
WcStatusProps string `xml:"wc-status>props,attr"`
}