summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/main.go b/main.go
index 085e14b..74442dc 100644
--- a/main.go
+++ b/main.go
@@ -162,12 +162,16 @@ func main() {
}
if argv.Patch.List != nil {
- lines, err := listPatches()
- if err != nil {
- badExit(err)
- }
- for i, line := range lines {
- log.Info(i, line)
+ if psets, err := me.forge.GetPatchesets(); err != nil {
+ log.Info("Get Patchsets failed", err)
+ return
+ } else {
+ log.Info("got psets len", len(psets.Patchsets))
+ all := psets.SortByName()
+ for all.Scan() {
+ pset := all.Next()
+ log.Info("pset name =", pset.Name)
+ }
}
}
findReposWithPatches()