Age | Commit message (Collapse) | Author |
|
Preparatory commit for implementation of '--clone' option.
|
|
|
|
Marking a source repository 'as plain' means that the whole source
repository tree will get imported as a repository type
corresponding to the source type. In this case, additional pragmas
than those supported by the inndividual imports might need to be
set.
Solve this by supporting the just-mr-style 'pragma' field also in
the source description, for all sources also accepting the
'as plain' field. Currently support only the 'special' pragma.
Document change and add test for plain imports that checks this
feature.
|
|
In particular, any transitive 'file'-type repository will inherit
any given '{to_git: true}' pragma in the import description
objects. Note that this technically can only happen for transitive
'file' repositories imported from a 'file' source, so in all other
cases such a pragma would not have any effect.
Document change and extend the import from 'file' source test to
check this feature.
|
|
Transitive 'file'-type repositories should inherit any pragmas
suported by the new repository type they are rewritten as.
Extend import tests to avoid regressing on this issue in the
future.
|
|
...before trying remotes.
|
|
While there, improve docstrings of methods operating on Git
repositories to specify when the underlying Git repositories are
expected to be present.
|
|
Based on f0473730 and 22ef0a16
|
|
Based on 76ce2123
|
|
|
|
|
|
|
|
|
|
|
|
...below the GitCAS and CAS utilities, in order for those to be
available for use when implementing the other import source types.
|
|
Enforce 'subdir' field of 'archive' import source to also be
non-upward.
Normalize subdirs during rewrite of dependent 'file'-type
repositories.
|
|
|
|
The rewrite logic assumes that for repositories taken as layers we
will not have certain fields and so they are unconditionally
reassigned.
Fix this by extending the existing check for bindings to include
also alternative roots and root files.
|
|
Use local CAS to cache fetched archives. Take the storage garbage
collector shared lock to guard against unwanted generation
rotations.
|
|
Add file locking logic; guard critical Git operations with the
same approach as in Just and also take the repositories garbage
collector shared lock to guard against unwanted generation
rotations.
|
|
When commit to fetch is known, check mirrors before going to the
main URL.
While there, ensure the context for logging in the checkout method is
not replaced, but appended to.
|
|
|
|
...to better reflect intent. In particular, improve the name of the
variable storing the partial description to be used during rewrite
of dependent 'file'-type repositories brought in by an import.
|
|
|
|
|
|
|
|
|
|
Use the RGB values of the predefined fmt library colors that both
just and just-mr use.
|
|
While there, also improve check for early return from import
method.
|
|
Able to handle imports from Git repositories and deduplicate the
resulting configuration.
|