diff options
Diffstat (limited to 'doMerge.go')
| -rw-r--r-- | doMerge.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,7 +44,6 @@ func findAutoPatchset() *forgepb.Patchset { // adds submitted patches not specifically assigned to a patchset // to the generic patchset called "forge auto commit" func addRandomPatch(patch *forgepb.Patch) error { - // ignore patch if it's already here if findPatch(patch) { log.Info("already found patch", patch.CommitHash, patch.Namespace) @@ -62,6 +61,7 @@ func addRandomPatch(patch *forgepb.Patch) error { return nil } +/* // adds a patchset or just the patches func addPatchset(filename string, pb *forgepb.Patchset) { // if the name of the patchset is "forge auto commit" @@ -102,6 +102,7 @@ func addPatchset(filename string, pb *forgepb.Patchset) { me.forge.Patchsets.Patchsets = append(me.forge.Patchsets.Patchsets, newpb) } } +*/ func mergePatchsets() { dirname := filepath.Join(LIBDIR, "patchset/") @@ -128,7 +129,7 @@ func mergePatchsets() { fmt.Println(entry.Name(), err) continue } - addPatchset(entry.Name(), p) + me.forge.AddPatchset(p) } } } |
