radicle-heartwood-lfs/radicle/src
Fintan Halpenny e71f07e592
radicle: temporary repository helper
It's possible that a temporary directory can be created on a different
mount, and when moved during a clone, creates an I/O error.

To prevent this, add a method to `Storage` which creates a temporary
directory and `Repository` with the path in the form
`<rid>.lock`.

This `.lock` path name can easily be skipped when listing
repositories. Further tooling can be added for detecting leftover
`.lock` directories if, for some reason, they were not cleaned up by
the `tempfile` crate.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-11-16 12:01:10 +00:00
..
canonical Update toolchain to Rust 1.71 2023-08-09 18:49:13 +02:00
cob radicle: use git::raw::Error for reference_oid 2023-11-09 17:47:07 +01:00
identity radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
node node: Only process messages from known nodes 2023-11-13 16:15:57 +01:00
storage radicle: temporary repository helper 2023-11-16 12:01:10 +00:00
test node: minimise refs announcement to key and Oid 2023-11-09 17:47:09 +01:00
canonical.rs radicle: custom CanonicalFormatter 2023-02-24 11:59:36 +01:00
cob.rs radicle: Pin timestamp for testing 2023-10-30 14:48:38 +01:00
collections.rs Introduce `cargo-deny` 2023-08-22 14:33:00 +02:00
git.rs radicle: add Special type 2023-11-06 12:06:13 +01:00
identity.rs cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
lib.rs cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
node.rs node: Rewrite `seeds` method to use sync-status 2023-11-13 12:06:37 +01:00
profile.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
serde_ext.rs radicle: Fix config deserialization 2023-08-14 10:31:35 +02:00
sql.rs node: Keep track of connection attempts 2023-05-05 17:23:52 +02:00
storage.rs radicle: use git::raw::Error for reference_oid 2023-11-09 17:47:07 +01:00
test.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
version.rs Add `--version` flag to binaries 2023-07-25 11:36:50 +02:00