aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/storage_test.go
Commit message (Collapse)AuthorAgeFilesLines
* *: use go-billy instead of os callsMáximo Cuadros2021-05-021-6/+17
|
* *: migration from go-git-fixtures/v4 and go-git/gcfgMáximo Cuadros2020-03-101-1/+0
|
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-5/+5
|
* Expose Storage cache.kuba--2018-09-071-6/+5
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* storage/filesystem: move Options to filesytem and dotgitJavi Fontan2018-09-031-4/+4
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* plumbing/storer: rename Static option to ExclusiveAccessJavi Fontan2018-08-311-1/+1
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* git, storer: use a common storer.Options for storer and PlainOpenJavi Fontan2018-08-301-1/+3
| | | | Signed-off-by: Javi Fontan <jfontan@gmail.com>
* git: add Static option to PlainOpenJavi Fontan2018-08-301-0/+18
| | | | | | | | | | | | | | | | Also adds Static configuration to Storage and DotGit. This option means that the git repository is not expected to be modified while open and enables some optimizations. Each time a file is accessed the storer tries to open an object file for the requested hash. When this is done for a lot of objects it is expensive. With Static option a list of object files is generated the first time an object is accessed and used to check if exists instead of using system calls. A similar optimization is done for packfiles. Signed-off-by: Javi Fontan <jfontan@gmail.com>
* update to go-billy.v4 and go-git-fixtures.v3Máximo Cuadros2017-11-231-2/+2
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* storage: reuse deltas from packfilesSantiago M. Mola2017-07-271-0/+9
| | | | | | | | | | | | | | | | | | | * plumbing: add DeltaObject interface for EncodedObjects that are deltas and hold additional information about them, such as the hash of the base object. * plumbing/storer: add DeltaObjectStorer interface for object storers that can return DeltaObject. Note that calls to EncodedObject will never return instances of DeltaObject. That requires explicit calls to DeltaObject. * storage/filesystem: implement DeltaObjectStorer interface. * plumbing/packfile: packfile encoder now supports reusing deltas that are already computed (e.g. from an existing packfile) if the storage implements DeltaObjectStorer. Reusing deltas boosts performance of packfile generation (e.g. on push).
* test: add more PackfileWriter testsSantiago M. Mola2017-07-191-0/+1
|
* *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-181-2/+2
|
* storage/filesystem: call initialization explicitely, fixes #408Santiago M. Mola2017-06-011-10/+9
| | | | | | | | | | | | | filesystem.Storage was initializing the gitdir (creating objects and refs) on NewStorage. But this should be done only on init and clone operations, not on open. Now there is a new interface storer.Initializer that storers can implement if they need any initialization step before init or clone. filesystem.Storage is one of such implementations. git.Init and git.Clone now call to the storer Init() method if it does implement it. Otherwise, it just ignores initialization.
* storage: filesystem, initialize the default folder scaffoldingMáximo Cuadros2017-05-211-0/+10
|
* use go-billy.v2 versionAntonio Jesus Navarro Perez2017-03-101-2/+2
|
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-3/+3
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* Repository.Init now handles non-standard .git locationMáximo Cuadros2017-02-131-0/+9
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-1/+1
|
* rename billy importsMáximo Cuadros2017-01-301-3/+2
|
* Extract billy (#173)Sergio Arbeo2016-12-191-1/+2
| | | | | | | | | | | | | | | * Extract billy Billy is a new library directly extracted from go-git. It abstract several storages systems in a filesystem interface. More in github.com/src-d/billy * Fix grouping in imports block * Update billy to v1 * Re-remove fs_implementation example
* global storage interface refactor (#112)Máximo Cuadros2016-11-071-14/+2
| | | | | | | | | | | * core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
* storage: filesystem fix testsMáximo Cuadros2016-11-041-1/+1
|
* storage/filesystem: implement missing functionality. (#110)Santiago M. Mola2016-11-031-1/+25
| | | | | | | * storage/filesystem: added ObjectStorage Set. * storage/filesystem: now passes all tests, except those specific to transactions. * formats/config: Encoder now encodes subsections with no options. * formats/config: add HasSubsection on Section. * dotgit: add Ref method to get specific reference.
* storage: filesystem idx generation (wip)Máximo Cuadros2016-09-061-8/+0
|
* storage: Storage entity support, and DotGit support for ReferencesMáximo Cuadros2016-08-121-313/+8
|
* storage: seekable renamed to filesystemMáximo Cuadros2016-08-111-0/+326