Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

capabilities: full integration #151

Merged
merged 9 commits into from
Dec 1, 2016
Merged

capabilities: full integration #151

merged 9 commits into from
Dec 1, 2016

Conversation

mcuadros
Copy link
Contributor

@mcuadros mcuadros commented Nov 30, 2016

Finally the capabilities are being negotiated in the fetch request.

Each commit is meaningful is suggest go through the commits to understand the modifications:

  • protocol/pakp: UploadReq validation and creation of capabilities 6fd9265
  • protocol/pakp: AdvRef tests 75f33c1
  • protocol/pakp: capability.List.Delete 467e1f9
  • protocol: filter unsupported capabilities 7114b29
  • remote capability negotiation 7ef39c8
  • transport: UploadRequest validation 1e8668f

@codecov-io
Copy link

codecov-io commented Nov 30, 2016

Current coverage is 76.15% (diff: 86.25%)

Merging #151 into master will increase coverage by 0.27%

@@             master       #151   diff @@
==========================================
  Files            77         80     +3   
  Lines          5004       5150   +146   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           3797       3922   +125   
- Misses          772        793    +21   
  Partials        435        435          

Powered by Codecov. Last update 634b6f0...c93dc38

@smola smola changed the title Capabilities fully integration capabilities: full integration Nov 30, 2016
Copy link
Collaborator

@smola smola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Some minor style+typos comments.

@@ -3,10 +3,14 @@ package packp
import (
"time"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

}

func (r *UploadRequest) validateConflictCapabilities() error {
msg := "capabilities %s and %s mutually exclusive"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"capabilities %s and %s mutually exclusive" -> "capabilities %s and %s are mutually exclusive"

@@ -4,6 +4,7 @@ import (
"testing"

. "gopkg.in/check.v1"
"gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import groups

@mcuadros mcuadros merged commit d025f8e into src-d:master Dec 1, 2016
@mcuadros mcuadros deleted the capabilities-packp branch December 13, 2016 10:13
mcuadros added a commit that referenced this pull request Jan 31, 2017
* format/pktline: fix readPayloadLen err handling

* protocol/pakp: UploadReq validation and creation of capabilities

* protocol/pakp: AdvRef tests

* protocol/pakp: capability.List.Delete

* protocol: filter unsupported capabilities

* remote capability negociation

* transport: UploadRequest validation

* requested changes
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants