attempt to write out patch files again
This commit is contained in:
parent
2b0f489855
commit
e4126c886b
|
@ -55,7 +55,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
|||
group1 := box.NewGroup("Submit Patches Summary")
|
||||
s.grid = group1.RawGrid()
|
||||
|
||||
s.grid.NewButton("Count Patches", func() {
|
||||
s.grid.NewButton("Update Patch Counts", func() {
|
||||
var repocount, patchcount int
|
||||
for _, repo := range repolist.AllRepos() {
|
||||
if repo.ReadOnly() {
|
||||
|
@ -86,15 +86,20 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
|||
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() {
|
||||
// update the stats
|
||||
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 {
|
||||
log.Info(i, p.Ref, p.RS.String())
|
||||
}
|
||||
*/
|
||||
})
|
||||
|
||||
s.grid.NextRow()
|
||||
|
@ -160,6 +165,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
|||
log.Info("something went wrong making", patchdir)
|
||||
return
|
||||
}
|
||||
me.repos.View.MakePatchset(patchdir)
|
||||
})
|
||||
// disable these until there are not dirty repos
|
||||
s.reason.Disable()
|
||||
|
|
Loading…
Reference in New Issue