JustAnotherArchivist
09cf078e34
Add metadata indexing
vor 10 Monaten
JustAnotherArchivist
1355db6235
Reduce memory usage by deleting potentially big objects when they're no longer needed
vor 1 Jahr
JustAnotherArchivist
c02859987f
Skip temporary metadata dependency resolution if there are no dependencies
vor 1 Jahr
JustAnotherArchivist
66666a1538
Workaround for incremental bundles with deltified objects
vor 1 Jahr
JustAnotherArchivist
d3c701daa9
Support parallel runs against the same storage
Closes #15
vor 1 Jahr
JustAnotherArchivist
d42ee45bb2
Module puts to storage directly
vor 1 Jahr
JustAnotherArchivist
543c6b0595
Use temporary directory for Git clone directory
The previous approach was flawed and broke on URLs ending with a slash.
vor 1 Jahr
JustAnotherArchivist
e08919d89f
Fix crash on incremental bundling with warnings
For example, if the HEAD is excluded:
warning: ref 'refs/heads/master' is excluded by the rev-list options
warning: ref 'HEAD' is excluded by the rev-list options
fatal: Refusing to create empty bundle.
The fatal message always appears last (though that's of course undocumented).
vor 1 Jahr
JustAnotherArchivist
0da610744c
Keep a record of what HEAD points at
vor 1 Jahr
JustAnotherArchivist
e39548c50b
Fix file extensions
vor 1 Jahr
JustAnotherArchivist
7861036624
Add submodule check
#13
vor 1 Jahr
JustAnotherArchivist
9a61800758
Refactor Git bundling to allow for verification of the bundle contents
This verifies that all objects from the current clone are in either the dependency bundles or the current bundle. This guarantees that the repo as it has been clone at the time of retrieval can be reconstructed exactly from the bundles.
As a side-effect, if a non-standard Git server were to include objects in a clone pack that are not discoverable from refs, this will fail any attempt to archive such a clone. This could in the future be resolved by adding custom refs for those extra objects.
This also fixes a bug where prior bundles could be included as a dependency even though they contain no relevant data due to their refs (as refs are always listed in the bundle metadata). Instead, dependency detection now operates directly on commit and tag objects, which can only be present in one bundle.
vor 1 Jahr
JustAnotherArchivist
cc7bdbb3f4
Fix tag objects not getting deduplicated
vor 1 Jahr
JustAnotherArchivist
4d6a423fb5
Replace hacky module importing (taken from snscrape commit aa7d7d3d)
vor 1 Jahr
JustAnotherArchivist
a361fe54e5
Add a metadata version field
vor 1 Jahr
JustAnotherArchivist
811e119835
Add retrieval start/end time metadata fields
vor 1 Jahr
JustAnotherArchivist
eab6db9f27
Better storage metadata search now that the module name is recorded there anyway
vor 1 Jahr
JustAnotherArchivist
fa4b60225c
Index → Metadata
'Index' was a misnomer from the start since it contains critical information for the operation that can't be reconstructed (e.g. existing refs).
vor 1 Jahr
JustAnotherArchivist
4259d34ec8
Set default ID
vor 1 Jahr
JustAnotherArchivist
d5891c795c
More metadata
vor 1 Jahr
JustAnotherArchivist
a910d4851c
Add support for inheritance of index fields; change type of field list to a tuple to lessen the risk of modification
vor 1 Jahr
JustAnotherArchivist
80995bccde
Add comment about FETCH_HEAD
vor 1 Jahr
JustAnotherArchivist
2a9ff2ee15
Support empty incremental bundles
vor 1 Jahr
JustAnotherArchivist
0e7b17d3fd
Capture and return stderr
vor 1 Jahr
JustAnotherArchivist
a6e256c58f
Fix invalid usage of codearchiver.subprocess
Introduced by 240dcceb
vor 1 Jahr
JustAnotherArchivist
8e83c9b7b4
Support incremental Git bundles
Also fix a small discrepancy between the commit list and bundle due to --reflog vs --all
vor 1 Jahr
JustAnotherArchivist
ed69ba16c9
logger → _logger
vor 1 Jahr
JustAnotherArchivist
6f7a95d289
Add --progress option to cloning for more details
vor 1 Jahr
JustAnotherArchivist
42e420ad0d
Disable prompts on password-protected repos
vor 1 Jahr
JustAnotherArchivist
6af07cb51c
Raise exceptions on fatal errors
vor 1 Jahr
JustAnotherArchivist
0f1f5abc64
Add indices for files
vor 1 Jahr
JustAnotherArchivist
06daea162f
Remove GitHub module as it is not ready for use yet
vor 1 Jahr
JustAnotherArchivist
240dcceb10
Add subprocess wrapper for logging stderr
vor 1 Jahr
JustAnotherArchivist
6fb0ac4e5e
Initial GitHub module only retrieving the actual repository
vor 4 Jahren
JustAnotherArchivist
22c707c04f
Add Module.name attribute
vor 4 Jahren
JustAnotherArchivist
7e8958b063
Allow overriding the archive ID
vor 4 Jahren
JustAnotherArchivist
90f80e41a9
Add __repr__ methods
vor 4 Jahren
JustAnotherArchivist
9f6e5a9f48
Move InputURL handling to base Module.__init__ and extract URL string for convenience
vor 4 Jahren
JustAnotherArchivist
07dc1927cf
Initial commit
A significant part of this code (e.g. the module loading, HTTP retrieval, CLI) was mostly or entirely copied from snscrape.
vor 4 Jahren