stub in routines to find patches
This commit is contained in:
parent
b847d9aa6c
commit
7081a04d58
1
argv.go
1
argv.go
|
@ -62,6 +62,7 @@ type CleanDevelCmd struct {
|
|||
}
|
||||
|
||||
type PatchCmd struct {
|
||||
Check *EmptyCmd `arg:"subcommand:check" help:"check the state of the patches"`
|
||||
List *EmptyCmd `arg:"subcommand:list" help:"your downloaded patchsets"`
|
||||
Get *EmptyCmd `arg:"subcommand:get" help:"get the new patchsets"`
|
||||
Show *EmptyCmd `arg:"subcommand:show" help:"your pending commits to your code"`
|
||||
|
|
|
@ -50,7 +50,7 @@ func (args) doBashAuto() {
|
|||
case "pull":
|
||||
fmt.Println("dirty clean list patches --force")
|
||||
case "patch":
|
||||
fmt.Println("get list submit show")
|
||||
fmt.Println("check get list submit show")
|
||||
case "user":
|
||||
fmt.Println("--force")
|
||||
case "devel":
|
||||
|
|
15
doPatch.go
15
doPatch.go
|
@ -37,6 +37,21 @@ func doPatch() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
if argv.Patch.Check != nil {
|
||||
for pset := range me.forge.Patchsets.IterAll() {
|
||||
log.Info(pset.Uuid)
|
||||
for patch := range pset.Patches.IterAll() {
|
||||
if repo, ok := me.forge.IsPatchApplied(patch); ok {
|
||||
log.Info("found patch in repo", repo.Namespace, patch.Filename)
|
||||
} else {
|
||||
// log.Info("did not find patch", patch.CommitHash, patch.NewHash, patch.Filename)
|
||||
}
|
||||
}
|
||||
}
|
||||
// me.forge.Patchsets.PrintTable()
|
||||
return nil
|
||||
}
|
||||
|
||||
if argv.Patch.List != nil {
|
||||
me.forge.Patchsets.PrintTable()
|
||||
// return doPatchList()
|
||||
|
|
Loading…
Reference in New Issue