stub in something to check the versions
This commit is contained in:
parent
a21d17dda9
commit
2bd007d0c0
6
Makefile
6
Makefile
|
@ -59,6 +59,8 @@ devel:
|
||||||
forge clean devel --force --verbose
|
forge clean devel --force --verbose
|
||||||
|
|
||||||
pull: install
|
pull: install
|
||||||
forge pull dirty
|
# forge pull dirty
|
||||||
FORGE_URL="https://forge.grid.wit.com/" forge pull
|
# FORGE_URL="https://forge.grid.wit.com/" forge pull dirty
|
||||||
|
# FORGE_URL="https://forge.grid.wit.com/" forge pull patches
|
||||||
|
FORGE_URL="https://forge.grid.wit.com/" forge pull check
|
||||||
# forge pull patches
|
# forge pull patches
|
||||||
|
|
2
argv.go
2
argv.go
|
@ -68,7 +68,7 @@ type PatchCmd struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PullCmd struct {
|
type PullCmd struct {
|
||||||
Test *EmptyCmd `arg:"subcommand:test" help:"list repos that need 'git pull'"`
|
Check *EmptyCmd `arg:"subcommand:check" help:"check repo versions"`
|
||||||
Dirty *EmptyCmd `arg:"subcommand:dirty" help:"only check dirty repos"`
|
Dirty *EmptyCmd `arg:"subcommand:dirty" help:"only check dirty repos"`
|
||||||
Patches *EmptyCmd `arg:"subcommand:patches" help:"only check repos with patches"`
|
Patches *EmptyCmd `arg:"subcommand:patches" help:"only check repos with patches"`
|
||||||
Sync *SyncCmd `arg:"subcommand:sync" help:"sync repos with upstream"`
|
Sync *SyncCmd `arg:"subcommand:sync" help:"sync repos with upstream"`
|
||||||
|
|
12
doPull.go
12
doPull.go
|
@ -71,6 +71,13 @@ func doGitPullNew() error {
|
||||||
check = findReposWithPatches()
|
check = findReposWithPatches()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if argv.Pull.Check != nil {
|
||||||
|
// TODO: never wrote this yet
|
||||||
|
// update, err := me.forge.CheckVersions()
|
||||||
|
// return err
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if check.Len() == 0 {
|
if check.Len() == 0 {
|
||||||
// check = doFind()
|
// check = doFind()
|
||||||
check = findAll()
|
check = findAll()
|
||||||
|
@ -79,6 +86,11 @@ func doGitPullNew() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
me.forge.PrintHumanTableFull(check)
|
me.forge.PrintHumanTableFull(check)
|
||||||
|
if argv.Pull.Dirty != nil {
|
||||||
|
log.Info("dirty count =", check.Len())
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
found, err := me.forge.LookupPB(check)
|
found, err := me.forge.LookupPB(check)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("LookupPB() failed", err, "len(check)=", check.Len())
|
log.Info("LookupPB() failed", err, "len(check)=", check.Len())
|
||||||
|
|
Loading…
Reference in New Issue