diff options
Diffstat (limited to 'doList.go')
| -rw-r--r-- | doList.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -18,9 +18,15 @@ func doClean() error { // show all the patchsets with Names for pset := range me.forge.Patchsets.IterAll() { for patch := range pset.Patches.IterAll() { - log.Info("\t", patch.CommitHash, patch.PatchId, patch.Namespace) + if patch.PatchId == "" { + log.Info("Delete", patch.CommitHash, patch.PatchId, patch.Namespace) + pset.Patches.Delete(patch) + } else { + log.Info("\t", patch.CommitHash, patch.PatchId, patch.Namespace) + } } } + me.forge.SavePatchsets() return nil } |
