switch to namespace fix send patches
This commit is contained in:
parent
6db458b2df
commit
6a1541c132
|
@ -187,7 +187,7 @@ func (p *Patchset) addPatchFiles(repo *gitpb.Repo) error {
|
|||
patch.parseData()
|
||||
patch.StartHash = repo.DevelHash()
|
||||
patch.NewHash = "na"
|
||||
patch.RepoNamespace = repo.GetGoPath()
|
||||
patch.Namespace = repo.GetGoPath()
|
||||
if p.Patches == nil {
|
||||
p.Patches = new(Patches)
|
||||
}
|
||||
|
|
|
@ -11,6 +11,14 @@ import (
|
|||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
// makes a new patches protobuf. These are all the patches on your machine.
|
||||
func NewPatches() *Patches {
|
||||
x := new(Patches)
|
||||
x.Uuid = "2679065e-c81d-4a00-aca4-03c158a834fb"
|
||||
x.Version = "v2.0.0 go.wit.com/lib/protobuf/forgepb"
|
||||
return x
|
||||
}
|
||||
|
||||
func (f *Forge) SendPatchSet(pset *Patchset) error {
|
||||
var err error
|
||||
data, err := pset.Marshal()
|
||||
|
|
|
@ -30,7 +30,7 @@ import "google/protobuf/timestamp.proto"; // Import the well-known type for Time
|
|||
// git log -1 --format="%H %aI %cI %an %ae %cn %ce"
|
||||
|
||||
message Patch {
|
||||
string repoNamespace = 1; // the base repo git URL
|
||||
string namespace = 1; // the base repo git namespace
|
||||
bytes data = 2; // the raw data of the whole patch
|
||||
string gH = 3; // after some deliberation, I think I'll just try variable names
|
||||
string gT = 4;
|
||||
|
@ -58,9 +58,10 @@ message Patch {
|
|||
bool upstream = 26; // has this patch been applied upstream?
|
||||
}
|
||||
|
||||
message Patches { // this is a "PATCH: [1/x]" series `autogenpb:gui:Patch`
|
||||
string uuid = 1; // `autogenpb:uuid:be926ad9-1111-484c-adf2-d96eeabf3079`
|
||||
string version = 2; // `autogenpb:version:v0.0.45`
|
||||
// this is a "PATCH: [1/x]" series
|
||||
message Patches { // `autogenpb:marshal` `autogenpb:gui:Patch`
|
||||
string uuid = 1; // `autogenpb:uuid:2679065e-c81d-4a00-aca4-03c158a834fb`
|
||||
string version = 2; // `autogenpb:version:v2.0.0`
|
||||
repeated Patch Patches = 3;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue