diff options
Diffstat (limited to 'windowSummary.go')
| -rw-r--r-- | windowSummary.go | 58 |
1 files changed, 26 insertions, 32 deletions
diff --git a/windowSummary.go b/windowSummary.go index f54051c..4b60413 100644 --- a/windowSummary.go +++ b/windowSummary.go @@ -6,7 +6,6 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" - "go.wit.com/log" ) type patchSummary struct { @@ -60,8 +59,13 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary { s.fileCount = s.grid.NewLabel("x files") s.grid.NextRow() - group1 = box.NewGroup("Submit Patch Set") + group1 = box.NewGroup("PatchSet Create") s.grid = group1.RawGrid() + + s.grid.NewButton("update patch summary", func() { + s.Update() + }) + s.reason = gadgets.NewBasicEntry(s.grid, "set name:") s.reason.Custom = func() { if s.reason.String() != "" { @@ -70,39 +74,29 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary { s.submitB.Disable() } } - s.submitB = s.grid.NewButton("Submit", func() { + s.submitB = s.grid.NewButton("Create", func() { doSubmit(s.reason.String()) }) - s.grid.NewButton("List Patchsets", func() { - lines, err := listPatches() - if err != nil { - log.Info(err) - return - } - for i, line := range lines { - log.Info(i, line) - r.addPatchset(line) - } - }) - - s.grid.NewButton("Apply Latest Patchset", func() { - lastp := lastPatch() - pset, err := getPatch(lastp) - if err != nil { - return - } - if _, _, _, err := IsEverythingOnDevel(); err != nil { - log.Info("You can only apply patches to the devel branch") - return - } - if IsAnythingDirty() { - log.Info("You can't apply patches when repos are dirty") - me.forge.PrintHumanTable(me.found) - return - } - applyPatchset(pset) - }) + /* + s.grid.NewButton("Apply Latest Patchset", func() { + lastp := lastPatch() + pset, err := getPatch(lastp) + if err != nil { + return + } + if _, _, _, err := IsEverythingOnDevel(); err != nil { + log.Info("You can only apply patches to the devel branch") + return + } + if IsAnythingDirty() { + log.Info("You can't apply patches when repos are dirty") + me.forge.PrintHumanTable(me.found) + return + } + applyPatchset(pset) + }) + */ // disable these until there are not dirty repos // s.reason.Disable() |
