Commit Graph

306 Commits

Author SHA1 Message Date
Stanislau Hlebik
467bcb1bd7 mononoke: add get_size method
Summary: Will be used by eden server in the next diff

Reviewed By: jsgf

Differential Revision: D5553955

fbshipit-source-id: 196e2da597d0456b4337a6d9ada8fe188075e87e
2017-08-09 08:39:07 -07:00
Jeremy Fitzhardinge
aa4fe84373 mononoke: repo: allow Repo to be boxed into trait object
Summary: Add helpers to allow an implementation of a Repo object to be boxed up into a type-erased trait object.

Reviewed By: sid0

Differential Revision: D5540673

fbshipit-source-id: c16332f6a548d053125dd3376e7e06d0ddffadf9
2017-08-02 17:43:24 -07:00
Jeremy Fitzhardinge
573256c18a mononoke: Repo: add bookmarks
Summary: Add a `get_bookmarks()` method to the Repo trait and implement it for RevlogRepo and BlobRepo.

Reviewed By: sid0

Differential Revision: D5540667

fbshipit-source-id: 710849e50b1d358be1c4f95a1cbd61efb7c2cf6b
2017-08-02 17:43:24 -07:00
Jeremy Fitzhardinge
22baa86eac mononoke: blobrepo: use chaining for Heads and Blobstore errors
Summary: Blobrepo can take any Heads or Blobstore implementation, each of which may have their own error type. Error chain doesn't support type parameters, and can only have foreign links for specific concrete types. To handle this we have a couple of placeholder errors in Blobrepo's errors which are chained onto the real underlying error.

Reviewed By: sid0

Differential Revision: D5540676

fbshipit-source-id: 9543e204754f22dfd68a04aec5a484fa85d53ff8
2017-08-02 17:43:24 -07:00
Stanislau Hlebik
8027459013 mononoke: use correct path for file node
Summary:
blobimport appends ".bincode" in the end of the file.
Let's do the same in blobrepo

Reviewed By: sid0

Differential Revision: D5527661

fbshipit-source-id: d54fe52c1d282f038a47ac2f2cd0aaf917a92227
2017-08-02 01:01:59 -07:00
facebook-github-bot
2b6af6b941 Initial commit
fbshipit-source-id: f75baa4ff6aa71973f677b752d7aba582cf4927f
2017-07-27 18:00:19 -07:00