radicle: Split `WriteRepository::set_head` up
The method set_head did two things:
- Compute the canonical head and set the default branch to target.
- Set the symbolic reference
HEADto target the default branch.
Split these two concerns into:
set_default_branch_to_canonical_headset_head_to_default_branch
8 files changed
+66
-36
646d4360
→
f00a5ed4
modified crates/radicle-node/src/worker/fetch.rs
@@ -119,11 +119,9 @@ impl Handle {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -369,9 +367,6 @@ fn set_canonical_refs(
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/push.rs
@@ -282,8 +282,7 @@ pub fn run(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -401,14 +400,8 @@ pub fn run(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/identity/doc.rs
@@ -742,12 +742,16 @@ impl Doc {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle/src/rad.rs
@@ -147,7 +147,8 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage.rs
@@ -522,6 +522,12 @@ pub trait ReadRepository: Sized + ValidateRepository {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -664,9 +670,16 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/storage/git.rs
@@ -786,7 +786,7 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -878,16 +878,39 @@ impl ReadRepository for Repository {
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -895,10 +918,6 @@ impl WriteRepository for Repository {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified crates/radicle/src/test.rs
@@ -58,7 +58,8 @@ pub fn fetch<W: WriteRepository>(
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/test/storage.rs
@@ -326,7 +326,11 @@ impl WriteRepository for MockRepository {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|