start Increment all tags
This commit is contained in:
parent
f68e76b914
commit
3c1d032101
|
@ -87,7 +87,7 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
hidegrid.NextRow()
|
||||
|
||||
group1 = vbox.NewGroup("prep for release")
|
||||
grid := group1.NewGrid("test", 0, 0)
|
||||
grid := group1.RawGrid()
|
||||
|
||||
var longB *gui.Node
|
||||
longB = grid.NewButton("generate go.sum files", func() {
|
||||
|
@ -120,6 +120,32 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
}
|
||||
})
|
||||
|
||||
grid.NewButton("increment tags", func() {
|
||||
for _, repo := range me.repos.View.AllRepos() {
|
||||
if whitelist(repo.GoPath()) {
|
||||
continue
|
||||
}
|
||||
if repo.ReadOnly() {
|
||||
continue
|
||||
}
|
||||
lasttag := repo.LastTag()
|
||||
masterv := repo.Status.GetMasterVersion()
|
||||
targetv := repo.Status.GetTargetVersion()
|
||||
|
||||
if lasttag == masterv {
|
||||
// nothing to do if curv == masterv
|
||||
// unless go.sum depends on changed repos
|
||||
continue
|
||||
}
|
||||
|
||||
if masterv != targetv {
|
||||
log.Info(repo.GoPath(), "master and target differ already", masterv, targetv)
|
||||
// already incremented
|
||||
continue
|
||||
}
|
||||
repo.Status.IncrementVersion()
|
||||
}
|
||||
})
|
||||
grid.NextRow()
|
||||
|
||||
group2 := vbox.NewGroup("Debugger")
|
||||
|
|
Loading…
Reference in New Issue