cleaning out old file

This commit is contained in:
Jeff Carr 2025-09-11 21:39:57 -05:00
parent 101e9bd0d2
commit fa3e6c3cd5
1 changed files with 0 additions and 22 deletions

View File

@ -58,34 +58,12 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
grid.NewLabel(fmt.Sprintf("total repos")) grid.NewLabel(fmt.Sprintf("total repos"))
grid.NextRow() grid.NextRow()
grid.NewButton("Update", func() {
log.Info("TODO: doesn't update this window")
me.forge.GetPatches()
dwin.win.Custom()
// loadUpstreamPatchsets()
})
grid.NewButton("Apply All", func() { grid.NewButton("Apply All", func() {
var count int var count int
all := patches.SortByFilename() all := patches.SortByFilename()
for all.Scan() { for all.Scan() {
p := all.Next() p := all.Next()
applyPatchNew(p) applyPatchNew(p)
/*
rn := p.Namespace
repo := me.forge.FindByGoPath(rn)
if repo == nil {
log.Info("Could not figure out repo path", rn)
return
}
count += 1
if _, err := applyAndTrackPatch(repo, p); err != nil {
cmd := []string{"git", "am", "--abort"}
err := repo.RunVerbose(cmd)
log.Info("warn user of git am error", err)
return
}
*/
} }
log.Info("ALL PATCHES WORKED! count =", count) log.Info("ALL PATCHES WORKED! count =", count)
}) })