general claenups
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
42c506c098
commit
584b93cab0
|
@ -80,7 +80,6 @@ func globalDisplayOptions(vbox *gui.Node) {
|
||||||
log.Info("re-scanning repos now")
|
log.Info("re-scanning repos now")
|
||||||
i, s := me.repos.View.ScanRepositories()
|
i, s := me.repos.View.ScanRepositories()
|
||||||
log.Info("re-scanning repos done", i, s)
|
log.Info("re-scanning repos done", i, s)
|
||||||
me.duration.SetText(s)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
var tagsW *tagWindow
|
var tagsW *tagWindow
|
||||||
|
|
29
structs.go
29
structs.go
|
@ -74,9 +74,6 @@ type autoType struct {
|
||||||
// total patches, etc
|
// total patches, etc
|
||||||
summary *patchSummary
|
summary *patchSummary
|
||||||
|
|
||||||
// shows how long the scan went for
|
|
||||||
duration *gui.Node
|
|
||||||
|
|
||||||
// when switch to user or devel branches, autocreate them
|
// when switch to user or devel branches, autocreate them
|
||||||
autoCreateBranches *gui.Node
|
autoCreateBranches *gui.Node
|
||||||
|
|
||||||
|
@ -85,29 +82,3 @@ type autoType struct {
|
||||||
newBranch *gui.Node
|
newBranch *gui.Node
|
||||||
setBranchB *gui.Node
|
setBranchB *gui.Node
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
type repo struct {
|
|
||||||
hidden bool
|
|
||||||
lasttagrev string
|
|
||||||
lasttag string
|
|
||||||
giturl string
|
|
||||||
|
|
||||||
pLabel *gui.Node // path label
|
|
||||||
|
|
||||||
lastTag *gui.Node // last tagged version label
|
|
||||||
vLabel *gui.Node // version label
|
|
||||||
dirtyLabel *gui.Node // git state (dirty or not?)
|
|
||||||
goSumStatus *gui.Node // what is the state of the go.sum file
|
|
||||||
|
|
||||||
masterVersion *gui.Node // the master branch version
|
|
||||||
develVersion *gui.Node // the devel branch version
|
|
||||||
userVersion *gui.Node // the user branch version
|
|
||||||
|
|
||||||
endBox *gui.Node // a general box at the end of the row
|
|
||||||
statusButton *gui.Node // opens up the status window
|
|
||||||
diffButton *gui.Node // opens up the status window
|
|
||||||
|
|
||||||
status *repostatus.RepoStatus
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
|
@ -86,21 +86,13 @@ 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() {
|
|
||||||
// update the stats
|
|
||||||
s.Update()
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
s.grid.NewButton("Make Patches", func() {
|
|
||||||
/* this used to be the way and should probably be revisited
|
/* this used to be the way and should probably be revisited
|
||||||
|
s.grid.NewButton("Make Patches", func() {
|
||||||
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()
|
||||||
|
|
||||||
|
@ -139,8 +131,12 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
||||||
|
|
||||||
s.grid.NewLabel("")
|
s.grid.NewLabel("")
|
||||||
s.grid.NewLabel("")
|
s.grid.NewLabel("")
|
||||||
s.grid.NewButton("merge from user", func() {})
|
s.grid.NewButton("merge from user", func() {
|
||||||
s.grid.NewButton("merge from devel", func() {})
|
log.Info("this should make a patchset of your patches")
|
||||||
|
})
|
||||||
|
s.grid.NewButton("merge from devel", func() {
|
||||||
|
log.Info("this probably should not exist")
|
||||||
|
})
|
||||||
s.grid.NextRow()
|
s.grid.NextRow()
|
||||||
|
|
||||||
group1 = box.NewGroup("Create GUI Patch Set")
|
group1 = box.NewGroup("Create GUI Patch Set")
|
||||||
|
|
Loading…
Reference in New Issue