attempt to write out patch files again

This commit is contained in:
Jeff Carr 2024-02-20 14:58:51 -06:00
parent 2b0f489855
commit e4126c886b
1 changed files with 8 additions and 2 deletions

View File

@ -55,7 +55,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
group1 := box.NewGroup("Submit Patches Summary") group1 := box.NewGroup("Submit Patches Summary")
s.grid = group1.RawGrid() s.grid = group1.RawGrid()
s.grid.NewButton("Count Patches", func() { s.grid.NewButton("Update Patch Counts", func() {
var repocount, patchcount int var repocount, patchcount int
for _, repo := range repolist.AllRepos() { for _, repo := range repolist.AllRepos() {
if repo.ReadOnly() { if repo.ReadOnly() {
@ -86,15 +86,20 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
s.totalUserRepos.SetText(strconv.Itoa(repocount) + " go repos") s.totalUserRepos.SetText(strconv.Itoa(repocount) + " go repos")
}) })
// this Update is deprecated and probably should be the function above
/*
s.grid.NewButton("summary.Update()", func() { s.grid.NewButton("summary.Update()", func() {
// update the stats // update the stats
s.Update() s.Update()
}) })
*/
s.grid.NewButton("List Patches", func() { s.grid.NewButton("Make Patches", func() {
/* this used to be the way and should probably be revisited
for i, p := range s.allp { for i, p := range s.allp {
log.Info(i, p.Ref, p.RS.String()) log.Info(i, p.Ref, p.RS.String())
} }
*/
}) })
s.grid.NextRow() s.grid.NextRow()
@ -160,6 +165,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
log.Info("something went wrong making", patchdir) log.Info("something went wrong making", patchdir)
return return
} }
me.repos.View.MakePatchset(patchdir)
}) })
// disable these until there are not dirty repos // disable these until there are not dirty repos
s.reason.Disable() s.reason.Disable()