Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-09-18 | Add missing #endif comments in headers | Maksim Denisov | |
2024-09-13 | Avoid unnecessary copies | Klaus Aehlig | |
2024-09-13 | Remove std::move of const value and avoid non-movable intermediate variables | Klaus Aehlig | |
2024-09-13 | Remove Compatibility flag from just-mr | Maksim Denisov | |
2024-09-13 | Rename Compatibility class to ProtocolTraits | Maksim Denisov | |
...and move it to the common stage. | |||
2024-09-12 | Prefer fseek ofer rewind | Klaus Aehlig | |
2024-09-11 | Use ArtifactDigestFactory in just-mr maps | Maksim Denisov | |
...to create ArtifactDigests. | |||
2024-09-11 | Store HashInfo in just-mr's GitTreeInfo as tree_hash | Maksim Denisov | |
...and use it to create ArtifactDigests. | |||
2024-09-11 | Store HashInfo in just-mr's ArchiveContent as content hash | Maksim Denisov | |
...and use it to create ArtifactDigests. | |||
2024-09-11 | Move just-mr's parsing of git trees to ParseGitTree | Maksim Denisov | |
...and use it in fetch and repos_to_setup_map to remove code duplication. | |||
2024-09-11 | Move ParseArchiveContent function to the header | Maksim Denisov | |
...to remove code duplications in ReposToSetupMap. | |||
2024-08-29 | just-mr maps: Properly check for missing values in map chain | Paul Cristian Sarbu | |
The root async map in a chain of calls should always be checked for missing value, which can happen if, e.g., a cycle happens or a thread gets killed by the system. Properly handle this by checking explicitly if a value has been posted. If not, check for cycles where it makes sense (for example, in the resolving of symlinks), otherwise report any pending map keys not yet processed. This is done for all just-mr commands working with async maps. | |||
2024-08-29 | just-mr maps: Add utility key-printing functions | Paul Cristian Sarbu | |
...to be used when reporting pending keys on failure to post value. | |||
2024-08-29 | just-mr maps: Fix wrong or missing return conditions | Paul Cristian Sarbu | |
2024-08-27 | Reformat code to comply with clang-format 18 | Klaus Aehlig | |
... while keeping our .clang-format file. | |||
2024-08-26 | GitRepo: Create commit from a directory explicitly... | Paul Cristian Sarbu | |
...by writing its tree directly in the object database instead of working with the index. This allows the creation of trees that contain also entries with 'magic' names, such as the .git folder or .gitignore files. Callers must ensure the given directory only contains the needed entries. In particular, just-mr maps and serve service are updated to separate the import-to-Git repository path from the temporary path containing the content to be committed, to avoid polluting the content path with entries generated on repository initialization. | |||
2024-08-26 | GitOps: Pass source directory to GitInitialCommit operation | Paul Cristian Sarbu | |
While there, ensure optional Git operation parameters are checked before use for the operations that require them. | |||
2024-08-26 | GitRepo: Change logic that creates commits to explicitly give directory | Paul Cristian Sarbu | |
In preparation for subsequent changes, specify the directory path containing the tree content to be committed explicitly. This change will allow eventually to be able to specify paths that are different from the root path of the repository in which the commit is created. This commit renames and refactors StageAndCommitAllAnnonymous to allow a directory path to be passed. The just-mr and serve service logic is updated such that current behaviour is otherwise unchanged. | |||
2024-08-26 | GitOpParams: Remove unneeded branch field | Paul Cristian Sarbu | |
The 'branch' field is deprecated, not being used by any of the critical Git operations, thus it can be removed. | |||
2024-08-07 | Replace classic C boolean operators with keywords | Maksim Denisov | |
! => not; && => and, || => or | |||
2024-08-05 | When using errno, log the actual error message | Paul Cristian Sarbu | |
For the user it is more useful to see the actual error message, provided by strerror(), than the pure error code. | |||
2024-08-05 | Add missing cerrno includes | Paul Cristian Sarbu | |
2024-07-30 | ApiBundle: Use a creator method instead of constructor | Paul Cristian Sarbu | |
This will allow for ApiBundle to be used together with the TestApi implementation of IExecutionApi in tests. Also rename CreateRemote method to MakeRemote in order to remove any semantical confusion. | |||
2024-07-30 | Pass LocalContext and RemoteContext to ServeApi | Paul Cristian Sarbu | |
Also switch to using the fields from RemoteContext instances instead of those from ApiBundle. | |||
2024-07-30 | Pass RemoteContext to ApiBundle | Paul Cristian Sarbu | |
The CreateRemote method is also updated to receive all remote-related information as arguments, such that it does not have to rely on the ApiBundle internal fields which will eventually be removed. | |||
2024-07-30 | Pass LocalContext to ApiBundle | Paul Cristian Sarbu | |
2024-07-29 | commit_git_map: fix line breaking in error messages | Klaus Aehlig | |
2024-07-24 | Tree fetching: first look in older generations | Klaus Aehlig | |
2024-07-23 | content_cas_map: also look in older git generations | Klaus Aehlig | |
2024-07-23 | git_commit_map: avoid duplicate creation and fix usage | Klaus Aehlig | |
... as CheckCommitExists returns an optional bool, not a plain one. | |||
2024-07-23 | just-mr: Remove progress and statistics singletons | Paul Cristian Sarbu | |
...and instead use simple instances created in setup, fetch, and update, respectively. The various maps and the progress reporter get access to these instances via not_null pointers. | |||
2024-07-23 | just-mr: Pass statistics instance in repos-to-setup map | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Use statistics and progress instances update map | Paul Cristian Sarbu | |
...instead of using the singletons. | |||
2024-07-23 | just-mr: Use statistics instance in fetch map | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Use progress instance in setup maps | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Pass progress and statistics instances to reporter | Paul Cristian Sarbu | |
2024-07-22 | Rename HashFunction methods and enums | Maksim Denisov | |
2024-07-22 | Create Hasher using a static function | Maksim Denisov | |
2024-07-22 | Store HashFunction in StorageConfig | Maksim Denisov | |
2024-07-22 | Use a fixed HashFunction in ReposToSetupMap | Maksim Denisov | |
2024-07-22 | Use HashFunction functionality via Instance() | Maksim Denisov | |
...to track changes during refactoring easier. | |||
2024-07-22 | import-to-git: fix typo in format string | Klaus Aehlig | |
2024-07-19 | For archives, also look in older repo generations before fetching | Klaus Aehlig | |
2024-07-19 | commit_git_map: take commit from older generations, if found there | Klaus Aehlig | |
If we're asked to fetch a commit that is not present in our git root right away, first look for it in older generations before starting the actual fetch. | |||
2024-07-19 | just-mr: add subcommand gc-repo | Klaus Aehlig | |
2024-07-19 | Take shared repo-gc lock wherever needed | Klaus Aehlig | |
2024-07-19 | git opertions: return tag for keep operations | Klaus Aehlig | |
2024-07-19 | Remove the RetryConfig singleton | Paul Cristian Sarbu | |
...and replace it with instances created early via a builder pattern. | |||
2024-07-19 | Pass RetryConfig instance to ApiBundle | Paul Cristian Sarbu | |
Also store a const ref for usage in setting up a fresh ApiBundle during target serve. | |||
2024-07-18 | just-mr: Fix wrong exit code for --help call | Paul Cristian Sarbu | |
Due to the specifics of how CLI11 library handles the --help argument and the fact that just-mr uses its own set of exit codes, we were correctly printing the help text, but falsely returning a non-zero exit code as result. This is now fixed. |