testing Width

This commit is contained in:
Jeff Carr 2025-09-04 18:47:37 -05:00
parent 78e883a106
commit 3a5e6ae51c
2 changed files with 2 additions and 7 deletions

View File

@ -190,10 +190,6 @@ func drawWindow(win *gadgets.GenericWindow) {
// AddNotDonePatches(notdone, pset, false) // AddNotDonePatches(notdone, pset, false)
} }
for patch := range notdone.IterAll() {
comment := cleanSubject(patch.Comment)
log.Info("new patch:", patch.NewHash, "commithash:", patch.CommitHash, patch.Namespace, comment)
}
patchesWin = makePatchesWin(notdone) patchesWin = makePatchesWin(notdone)
}) })

View File

@ -228,11 +228,10 @@ func AddAllPatches(notdone *forgepb.Patches, pset *forgepb.Patchset, full bool)
if found := notdone.FindByCommitHash(patch.CommitHash); found != nil { if found := notdone.FindByCommitHash(patch.CommitHash); found != nil {
log.Info("duplicate commit hash", patch.Namespace, "patch:", patch.NewHash, "commithash:", patch.CommitHash, comment) log.Info("duplicate commit hash", patch.Namespace, "patch:", patch.NewHash, "commithash:", patch.CommitHash, comment)
continue // continue
} }
newhash, _ := findCommitByHash(patch.StartHash, comment)
log.Info("adding patch:", patch.Namespace, patch.CommitHash, comment, newhash) // log.Info("adding patch:", patch.Namespace, patch.CommitHash, comment, newhash)
notdone.AppendByCommitHash(patch) // double check to ensure the commit hash isn't added twice notdone.AppendByCommitHash(patch) // double check to ensure the commit hash isn't added twice
} }
} }