| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
Set version to 1.0.0
See merge request CodethinkLabs/lorry/lorry!39
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
Bump black version to fix CI
See merge request CodethinkLabs/lorry/lorry!38
|
|/ |
|
|\
| |
| |
| |
| | |
Add CI testing for raw files
See merge request CodethinkLabs/lorry/lorry!37
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Created two tests for the creation of appropriate local git repos
from folders of raw files.
1. One raw file. Verify that the desired form of the .lorry file creates
a corresponding git repo with the correct relative paths.
2. Multiple raw files. Verify all the above, plus the additon of all raw
files and the updating of the realtive paths upon changes of the .lorry
file.
|
|\
| |
| |
| |
| |
| |
| | |
Remove persistent configuration downstream
Closes #30
See merge request CodethinkLabs/lorry/lorry!36
|
|/
|
|
|
|
|
|
|
|
|
| |
Checks whether downstream files are now redundant according to current
.lorry file, using `git worktree`. If so, their paths are deleted
downstream.
Also checks whether redundant files are not needed locally, ie the files
haven't just been moved to a new path. If so, they're deleted.
Resolves #30
|
|\
| |
| |
| |
| | |
Update linting and style checking
See merge request CodethinkLabs/lorry/lorry!35
|
| |
| |
| |
| | |
Splits pipeline into two stages: linting and testing.
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
Set 'destination' field as optional
See merge request CodethinkLabs/lorry/lorry!34
|
|/ |
|
|\
| |
| |
| |
| |
| |
| | |
(v2) Make raw importer honour multiple files
Closes #29
See merge request CodethinkLabs/lorry/lorry!33
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Resolves issue where raw importer was only honouring last entry for
several files with same upstream path.
These files were being passed as comma-separated URLs under the 'urls'
tag in the .lorry file. The yaml importer could only store one entry per
'urls', updating a dictionary entry after each comma.
The changes in this commit allow for multiple files to be added, but the
URLs must now be added in the form:
```
urls:
- destination: libosinfo
url: https://releases.pagure.org/libosinfo/osinfo-db-20211216.tar.xz
- destination: libosinfo
url: https://releases.pagure.org/libosinfo/libosinfo-1.2.0.tar.gz
```
A previous branch was created to resolve this issue, but the solution required URLs to be separted by whitespace. It was decided that the format implemented here is preferable.
Resolves: #29
|
|\
| |
| |
| |
| |
| |
| | |
Support mirroring lfs content to the root of the repository
Closes #27
See merge request CodethinkLabs/lorry/lorry!31
|
| | |
|
| | |
|
|/
|
|
|
| |
We always pass the relative path, drop support for optionally passing
it.
|
|\
| |
| |
| |
| | |
Create the gitdir regardless of no new archive/lfs content
See merge request CodethinkLabs/lorry/lorry!30
|
|/ |
|
|\
| |
| |
| |
| | |
Fix default make tarball behaviour and test
See merge request CodethinkLabs/lorry/lorry!29
|
| | |
|
| |
| |
| |
| |
| | |
Use tarball-dest since test is checking creation works, not default
location behaviour
|
|/
|
|
| |
Prevent them being created in root of current directory
|
|\
| |
| |
| |
| |
| |
| | |
Create tarball destination when non-existent
Closes #23
See merge request CodethinkLabs/lorry/lorry!28
|
|/
|
|
|
|
| |
Just a quality of life improvement
Closes #23
|
|\
| |
| |
| |
| | |
Spoof user-agent to look like browser
See merge request CodethinkLabs/lorry/lorry!27
|
|/
|
|
|
|
| |
If we get an HTTPError 403 then set the user-agent so it is clear that
the request is coming from Lorry. This is used to get around situations where
the url has blocked python user-agents.
|
|\
| |
| |
| |
| | |
lorry.tar-importer: support hard links
See merge request CodethinkLabs/lorry/lorry!23
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Integrates support for hard links from the change made in upstream git
back in 2016.
Below is the body of the upstream commit
(04e0869876f726d5af9ac901911781d440e6aed2):
Previously, we simply treated hard links as if they were plain files
with size 0, ignoring the link type "1" and hence the link target.
What we should do instead, of course, is to use the link target to get
at the import mark for the contents, even if we cannot recreate the hard
link per se, as Git has no concept of hard links.
|
|\
| |
| |
| |
| |
| |
| | |
Set minimum version to 3.6
Closes #26
See merge request CodethinkLabs/lorry/lorry!25
|
| |
| |
| |
| |
| | |
3.6 is not EOL yet, let's not rush to requiring anything higher just
yet.
|
|/ |
|
|\
| |
| |
| |
| | |
Include raw file importer in setup
See merge request CodethinkLabs/lorry/lorry!24
|
|/
|
|
|
| |
Required for blob mirroring to work in TroveKube minion Docker image
(or anywhere else setup.py is used to install).
|
|\
| |
| |
| |
| |
| |
| | |
Ignore the global PAX header
Closes #25
See merge request CodethinkLabs/lorry/lorry!22
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The tar importer in `contrib/fast-import/import-tars.perl` has a very
convenient feature: if _all_ paths stored in the imported `.tar` start
with a common prefix, e.g. `git-2.26.0/` in the tar at
https://github.com/git/git/archive/v2.26.0.tar.gz, then this prefix is
stripped.
This feature makes a ton of sense because it is relatively common to
import two or more revisions of the same project into Git, and obviously
we don't want all files to live in a tree whose name changes from
revision to revision.
Now, the problem with that feature is that it breaks down if there is a
`pax_global_header` "file" located outside of said prefix, at the top of
the tree. This is the case for `.tar` files generated by Git's very own
`git archive` command: it inserts that header, and `git archive` allows
specifying a common prefix (that the header does _not_ share with the
other files contained in the archive) via `--prefix=my-project-1.0.0/`.
Let's just skip any global header when importing `.tar` files into Git.
Note: this global header might contain useful information. For example,
in the output of `git archive`, it lists the original commit, which _is_
useful information. A future improvement to the `import-tars.perl`
script might be to include that information in the commit message, or do
other things with the information (e.g. use `mtime` information
contained in the global header as date of the commit). This patch does
not prevent any future patch from making that happen, it only prevents
the header from being treated as if it was a regular file.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
|
|\
| |
| |
| |
| | |
Introduce support for raw file lorries
See merge request CodethinkLabs/lorry/lorry!21
|
| |
| |
| |
| |
| |
| |
| | |
- Automaitcally clean up when done
- Improve code readability
- Use of parentheses around a with statement is a Python 3.10 change
(though supported in 3.9)
|
| |
| |
| |
| |
| | |
Don't want to polute the environment and install
globally
|
| | |
|