Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nozlib #115

Merged
merged 61 commits into from
Aug 6, 2015
Merged

Nozlib #115

merged 61 commits into from
Aug 6, 2015

Conversation

samoht
Copy link
Member

@samoht samoht commented Aug 3, 2015

That's the first step to make it more Xen/JS friendly. The second one is to abstract the SHA1 implementation. Patches landing soon.

@samoht samoht force-pushed the nozlib branch 3 times, most recently from 08d27a9 to 1c60e7e Compare August 4, 2015 12:59
samoht added 26 commits August 4, 2015 17:56
For now only in the metadata (the _oasis and opam files)
This has moved to Git.Inflate.
The goal is that all Git objects expose a Object.S signature and maybe a functor
to create an Object.IO (parametrized by digest and/or inflate algorithms).
samoht added 10 commits August 5, 2015 19:12
Seems that in some cases the side-band messages do not work as expected...
need to investigate.
This means that these values actually are not present in the pack file.
Shallow values are now properly translated to PIC values and the deltas
are not skipped anymore. The new delta objects points to the shallow PICs.
It's possible that two delta points to two different shallow PICs with
the same hash, that's annoying but should not be a bug as shallow PICs
are not serialized in the pack file anyway (so no risk of duplciation).
…ones

Also advertize that our client supports thin-pack and ofs-delta
Fix mirage#114

I think we do not send enough of them.
samoht added 6 commits August 5, 2015 22:47
This is not supported by GitHub (as it does not advertise
"allow-reachable-sha1-in-want") so use a commit corresponding
to the tag 1.6.0 instead.

Fetch a hash corresponding to a tag instead
So the server sent us a pack file way too big.
Add more tests and fix the existing ones.
samoht added 5 commits August 6, 2015 20:00
Now the client computes the "slice" of commits between the ones he knows about
and the ones the server knows about. This should optimize for most of the cases.

There is still a non-optimal case: when both the client and the server have
updated the same reference. In that case, we perform very badly. A possible
fix would be to send all the commits again in that case, but that's not very
elegant...
samoht added a commit that referenced this pull request Aug 6, 2015
@samoht samoht merged commit 2d41574 into mirage:master Aug 6, 2015
@samoht samoht deleted the nozlib branch August 6, 2015 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant