summaryrefslogtreecommitdiff
path: root/windowPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-21 22:43:28 -0500
committerJeff Carr <[email protected]>2025-08-21 22:43:28 -0500
commitb83a5d491f91edf11a107320343da9ff15b2d8dc (patch)
tree48e3d8305afd2a992981b7ca9b0779e7ff8efca9 /windowPatches.go
parenteb9dea5dd06a5170d636187c753146a2828c6f24 (diff)
rename to 'Namespace'
Diffstat (limited to 'windowPatches.go')
-rw-r--r--windowPatches.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/windowPatches.go b/windowPatches.go
index 470ca10..552d45b 100644
--- a/windowPatches.go
+++ b/windowPatches.go
@@ -51,7 +51,7 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
all := patches.All()
for all.Scan() {
patch := all.Next()
- repomap[patch.RepoNamespace] += 1
+ repomap[patch.Namespace] += 1
}
grid.NewLabel(fmt.Sprintf("%d", len(repomap)))
grid.NewLabel(fmt.Sprintf("total repos"))
@@ -72,7 +72,7 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
for patch := range notdone.IterAll() {
comment := cleanSubject(patch.Comment)
- log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.RepoNamespace, comment)
+ log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.Namespace, comment)
}
dwin.doPatchesTable(notdone)
})
@@ -81,7 +81,7 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
all := patches.SortByFilename()
for all.Scan() {
p := all.Next()
- rn := p.RepoNamespace
+ rn := p.Namespace
repo := me.forge.FindByGoPath(rn)
if repo == nil {
log.Info("Could not figure out repo path", rn)
@@ -114,7 +114,7 @@ func makePatchesWin(patches *forgepb.Patches) *stdPatchTableWin {
}
func applyPatchNew(p *forgepb.Patch) error {
- rn := p.RepoNamespace
+ rn := p.Namespace
repo := me.forge.FindByGoPath(rn)
if repo == nil {
return fmt.Errorf("Could not figure out repo path %s", rn)
@@ -156,7 +156,7 @@ func AddPatchesPB(tbox *gui.Node, pb *forgepb.Patches) *forgepb.PatchesTable {
t.SetParent(tbox)
gitam := t.AddButtonFunc("apply", func(p *forgepb.Patch) string {
- rn := p.RepoNamespace
+ rn := p.Namespace
if repo := me.forge.FindByGoPath(rn); repo == nil {
// log.Info("Could not figure out repo path", rn)
return ""
@@ -172,7 +172,7 @@ func AddPatchesPB(tbox *gui.Node, pb *forgepb.Patches) *forgepb.PatchesTable {
}
t.AddCommitHash()
- t.AddRepoNamespace()
+ t.AddNamespace()
// t.AddFilename()
t.AddStringFunc("file", func(p *forgepb.Patch) string {
_, fname := filepath.Split(p.Filename)