node: handle removal of cob from cache
When a Patch or Issue is entirely removed from the Git repository,
then there is no update to be made – instead it should also be
removed from the cache.
This covers the case where the original author of the COB deletes the COB.
3 files changed
+48
-7
53ecc884
→
8bf87190
modified radicle-cli/examples/rad-patch-delete.md
@@ -11,7 +11,7 @@ $ git commit -m "Introduce license"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -26,7 +26,7 @@ $ rad patch comment 6c61ef1 -m "I think we should use MIT"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -53,7 +53,7 @@ $ rad patch comment 6c61ef1 --reply-to 833db19 -m "Thanks, I'll add it!"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -69,7 +69,7 @@ $ git commit -am "Add MIT License"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -77,7 +77,7 @@ To rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkE
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -99,7 +99,7 @@ $ rad patch show 6c61ef1 -v
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -121,3 +121,16 @@ $ rad patch show 6c61ef1 -v
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified radicle-cli/tests/commands.rs
@@ -967,6 +967,7 @@ fn rad_patch_delete() {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -983,9 +984,11 @@ fn rad_patch_delete() {
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1007,6 +1010,11 @@ fn rad_patch_delete() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/worker/fetch.rs
@@ -302,6 +302,16 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -313,6 +323,16 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|