show git commit message. repo namespace
This commit is contained in:
parent
f61891ca88
commit
e548b0fb6d
|
@ -6,6 +6,7 @@ import (
|
||||||
|
|
||||||
"go.wit.com/lib/gadgets"
|
"go.wit.com/lib/gadgets"
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
|
"go.wit.com/log"
|
||||||
|
|
||||||
"go.wit.com/gui"
|
"go.wit.com/gui"
|
||||||
)
|
)
|
||||||
|
@ -82,13 +83,28 @@ func makePatchWindow(pset *forgepb.Patchset) *patchWindow {
|
||||||
grid.NextRow()
|
grid.NextRow()
|
||||||
grid.NewLabel("end branch: " + pset.EndBranchName)
|
grid.NewLabel("end branch: " + pset.EndBranchName)
|
||||||
grid.NewLabel(pset.EndBranchHash)
|
grid.NewLabel(pset.EndBranchHash)
|
||||||
|
grid.NextRow()
|
||||||
|
|
||||||
/*
|
grid.NewButton("Extract", func() {
|
||||||
r.shelf = r.initGroup()
|
if err := savePatchset(pset); err != nil {
|
||||||
group1 := r.stack.NewGroup("stuff")
|
log.Info("Save err:", err)
|
||||||
vbox := group1.Box()
|
return
|
||||||
vbox.Vertical()
|
}
|
||||||
*/
|
})
|
||||||
|
grid.NewButton("Apply", func() {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
if argv.Force {
|
||||||
|
applyPatchset(pset)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
g := pw.stack.NewGroup("PatchSet List")
|
g := pw.stack.NewGroup("PatchSet List")
|
||||||
|
|
||||||
|
@ -99,6 +115,8 @@ func makePatchWindow(pset *forgepb.Patchset) *patchWindow {
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
p := all.Next()
|
p := all.Next()
|
||||||
// if IsValidPatch(p) {
|
// if IsValidPatch(p) {
|
||||||
|
filegrid.NewLabel(p.RepoNamespace)
|
||||||
|
filegrid.NewLabel(p.Comment)
|
||||||
filegrid.NewLabel(p.Filename)
|
filegrid.NewLabel(p.Filename)
|
||||||
filegrid.NewLabel(p.RepoPath)
|
filegrid.NewLabel(p.RepoPath)
|
||||||
filegrid.NewLabel(p.BranchName)
|
filegrid.NewLabel(p.BranchName)
|
||||||
|
|
Loading…
Reference in New Issue