parent
a46c523a7a
commit
576580772e
21
repolist.go
21
repolist.go
|
@ -52,10 +52,6 @@ func (r *repo) Hide() {
|
|||
r.lastTag.Hide()
|
||||
r.vLabel.Hide()
|
||||
|
||||
// r.masterVersion.Hide()
|
||||
// r.develVersion.Hide()
|
||||
// r.userVersion.Hide()
|
||||
|
||||
r.dirtyLabel.Hide()
|
||||
r.goSumStatus.Hide()
|
||||
r.statusButton.Hide()
|
||||
|
@ -67,10 +63,6 @@ func (r *repo) Show() {
|
|||
r.lastTag.Show()
|
||||
r.vLabel.Show()
|
||||
|
||||
// r.masterVersion.Show()
|
||||
// r.develVersion.Show()
|
||||
// r.userVersion.Show()
|
||||
|
||||
r.dirtyLabel.Show()
|
||||
r.goSumStatus.Show()
|
||||
r.statusButton.Show()
|
||||
|
@ -95,16 +87,11 @@ func repoworld() {
|
|||
reposgrid.NewLabel("") // path goes here
|
||||
|
||||
reposgrid.NewLabel("last tag").SetProgName("last tag")
|
||||
|
||||
// reposgrid.NewLabel("master version")
|
||||
// reposgrid.NewLabel("devel version")
|
||||
// reposgrid.NewLabel("user version")
|
||||
reposgrid.NewLabel("Current Version").SetProgName("Current Version")
|
||||
|
||||
reposgrid.NewLabel("Status")
|
||||
reposgrid.NewLabel("go.sum")
|
||||
|
||||
reposgrid.NewLabel("Current Version").SetProgName("Current Version")
|
||||
|
||||
reposgrid.NewLabel("Show()")
|
||||
|
||||
repos := myrepolist()
|
||||
|
@ -160,15 +147,11 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
|
|||
newRepo.pLabel = grid.NewLabel(path).SetProgName("path")
|
||||
|
||||
newRepo.lastTag = grid.NewLabel("").SetProgName("lastTag")
|
||||
|
||||
// newRepo.masterVersion = grid.NewLabel("").SetProgName("masterVersion")
|
||||
// newRepo.develVersion = grid.NewLabel("").SetProgName("develVersion")
|
||||
// newRepo.userVersion = grid.NewLabel("").SetProgName("userVersion")
|
||||
newRepo.vLabel = grid.NewLabel("").SetProgName("current")
|
||||
|
||||
newRepo.dirtyLabel = grid.NewLabel("")
|
||||
newRepo.goSumStatus = grid.NewLabel("?")
|
||||
|
||||
newRepo.vLabel = grid.NewLabel("").SetProgName("current")
|
||||
|
||||
newRepo.statusButton = grid.NewButton("Configure", func() {
|
||||
if newRepo.status == nil {
|
||||
|
|
22
scan.go
22
scan.go
|
@ -22,28 +22,6 @@ func (r *repo) newScan() bool {
|
|||
log.Warn("repo does not exist", r.getPath())
|
||||
return false
|
||||
}
|
||||
/*
|
||||
mname := r.status.GetMasterBranchName()
|
||||
mver := r.status.GetMasterVersion()
|
||||
if mname != "guimaster" {
|
||||
mver = mver + " (" + mname + ")"
|
||||
}
|
||||
r.masterVersion.SetLabel(mver)
|
||||
|
||||
dname := r.status.GetDevelBranchName()
|
||||
dver := r.status.GetDevelVersion()
|
||||
if dname != "devel" {
|
||||
dver = dver + " (" + dname + ")"
|
||||
}
|
||||
r.develVersion.SetLabel(dver)
|
||||
|
||||
uname := r.status.GetUserBranchName()
|
||||
uver := r.status.GetUserVersion()
|
||||
if uname != "jcarr" {
|
||||
uver = uver + " (" + uname + ")"
|
||||
}
|
||||
r.userVersion.SetLabel(uver)
|
||||
*/
|
||||
|
||||
cbname := r.status.GetCurrentBranchName()
|
||||
cbversion := r.status.GetCurrentBranchVersion()
|
||||
|
|
Loading…
Reference in New Issue