From a099bbd3e656ac2d0cf1db656f08d91c673db437 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Sep 2025 20:34:08 -0500 Subject: add support for old version of the tool using new code --- doList.go | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'doList.go') diff --git a/doList.go b/doList.go index 382c083..09068cc 100644 --- a/doList.go +++ b/doList.go @@ -8,23 +8,12 @@ import ( func doList() error { log.Info("do list here") - if err := me.forge.LoadPatchsets(); err != nil { - badExit(err) - } - - // first show the general patchset protobuf - for pb := range me.forge.Patchsets.IterAll() { - if pb.Name == "forge auto commit" { - pb.ShowPatchsets() - } - } - // show all the patchsets with Names for pset := range me.forge.Patchsets.IterAll() { - if pset.Name == "forge auto commit" { - continue + log.Info("Info", pset.Name, pset.Uuid) + for i, patch := range pset.Patches.Patches { + log.Info("\t", i, patch.CommitHash, patch.Namespace) } - pset.ShowPatchsets() } return nil } -- cgit v1.2.3