summaryrefslogtreecommitdiff
path: root/applyPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 11:55:17 -0600
committerJeff Carr <[email protected]>2025-02-01 11:55:17 -0600
commited686fc4d634caf05595b9c710d5de8e420ac5be (patch)
tree34c4783ccd3a8d424f2bf134ed875a9a48cfc658 /applyPatch.go
parent7c4feea366eb32e284a2b5dd6167dcc7b4df1128 (diff)
more improvements to viewing patchsets
Diffstat (limited to 'applyPatch.go')
-rw-r--r--applyPatch.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/applyPatch.go b/applyPatch.go
index 3610c06..1ca716c 100644
--- a/applyPatch.go
+++ b/applyPatch.go
@@ -95,11 +95,6 @@ func applyPatchset(pset *forgepb.Patchset) error {
log.Info("Should run: at", basedir, ":", cmd)
log.Info(basedir, filename)
result := shell.PathRun(basedir, cmd)
- /*
- if err != nil {
- log.Info("git am failed", err)
- }
- */
for _, line := range result.Stdout {
log.Warn("stdout:", line)
}
@@ -107,32 +102,6 @@ func applyPatchset(pset *forgepb.Patchset) error {
log.Warn("stderr:", line)
}
}
- /*
- // log.Info("pset filename FILENAME IS REAL?", p.Filename, pset.Name, pset.Comment)
- basepath, filename := filepath.Split(p.Filename)
- fullpath := filepath.Join(me.forge.GetGoSrc(), basepath)
- log.Info("pset filename FILENAME IS REAL? fullpath", fullpath)
- fullTmpdir := filepath.Join(tmpdir, basepath)
- err := os.MkdirAll(fullTmpdir, os.ModePerm)
- if err != nil {
- log.Info("applyPathces() MkdirAll failed for", fullTmpdir)
- log.Info("applyPathces() MkdirAll failed err", err)
- everythingworked = false
- continue
- }
- log.Info("pset filename FILENAME IS REAL? tmp fullTmpdir", fullTmpdir)
- tmpname := filepath.Join(fullTmpdir, filename)
- raw, _ := os.OpenFile(tmpname, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
- raw.Write(p.Data)
- raw.Close()
- */
- /*
- result := shell.PathRun(fullpath, cmd)
- if result.Exit != 0 {
- log.Info("cmd failed", cmd, result.Exit)
- everythingworked = false
- }
- */
everythingworked = false
}
if everythingworked {