2021-12-06 23:44:40 +03:00
|
|
|
# Empty namespace behaviours
|
|
|
|
|
|
|
|
```unison
|
|
|
|
mynamespace.x = 1
|
|
|
|
```
|
|
|
|
|
2021-12-07 00:06:11 +03:00
|
|
|
The deleted namespace shouldn't appear in `ls` output.
|
2021-12-06 23:44:40 +03:00
|
|
|
```ucm
|
2021-12-07 00:06:11 +03:00
|
|
|
.> ls
|
|
|
|
|
|
|
|
nothing to show
|
2021-12-06 23:44:40 +03:00
|
|
|
|
2021-12-07 00:06:11 +03:00
|
|
|
```
|
|
|
|
```ucm
|
2022-07-11 18:42:20 +03:00
|
|
|
.> find.verbose
|
|
|
|
|
|
|
|
☝️
|
|
|
|
|
|
|
|
I couldn't find matches in this namespace, searching in
|
|
|
|
'lib'...
|
2021-12-07 00:06:11 +03:00
|
|
|
|
|
|
|
😶
|
2021-12-06 23:44:40 +03:00
|
|
|
|
2021-12-07 00:06:11 +03:00
|
|
|
No results. Check your spelling, or try using tab completion
|
|
|
|
to supply command arguments.
|
2022-04-07 00:20:44 +03:00
|
|
|
|
|
|
|
`find.global` can be used to search outside the current
|
|
|
|
namespace.
|
2021-12-06 23:44:40 +03:00
|
|
|
|
|
|
|
```
|
|
|
|
```ucm
|
2021-12-07 00:06:11 +03:00
|
|
|
.> find mynamespace
|
2021-12-06 23:44:40 +03:00
|
|
|
|
2022-07-11 18:42:20 +03:00
|
|
|
☝️
|
|
|
|
|
|
|
|
I couldn't find matches in this namespace, searching in
|
|
|
|
'lib'...
|
|
|
|
|
2021-12-07 00:06:11 +03:00
|
|
|
😶
|
|
|
|
|
|
|
|
No results. Check your spelling, or try using tab completion
|
|
|
|
to supply command arguments.
|
2022-04-07 00:20:44 +03:00
|
|
|
|
|
|
|
`find.global` can be used to search outside the current
|
|
|
|
namespace.
|
2021-12-06 23:44:40 +03:00
|
|
|
|
|
|
|
```
|
2021-12-09 01:39:48 +03:00
|
|
|
## history
|
|
|
|
|
2023-01-30 20:08:34 +03:00
|
|
|
The history of the namespace should be empty.
|
2021-12-07 00:09:58 +03:00
|
|
|
|
|
|
|
```ucm
|
|
|
|
.> history mynamespace
|
|
|
|
|
2023-01-30 20:08:34 +03:00
|
|
|
☝️ The namespace .mynamespace is empty.
|
2021-12-07 00:09:58 +03:00
|
|
|
|
|
|
|
```
|
2023-01-30 20:08:34 +03:00
|
|
|
Merging an empty namespace should be a no-op
|
2021-12-07 00:15:40 +03:00
|
|
|
|
|
|
|
```ucm
|
|
|
|
☝️ The namespace .empty is empty.
|
|
|
|
|
|
|
|
.empty> history
|
|
|
|
|
|
|
|
☝️ The namespace .empty is empty.
|
|
|
|
|
2024-04-24 19:29:15 +03:00
|
|
|
.empty> merge.old .mynamespace
|
2021-12-07 00:15:40 +03:00
|
|
|
|
2023-01-30 20:08:34 +03:00
|
|
|
⚠️
|
|
|
|
|
|
|
|
The namespace .mynamespace doesn't exist.
|
2021-12-07 00:15:40 +03:00
|
|
|
|
|
|
|
.empty> history
|
|
|
|
|
2023-01-30 20:08:34 +03:00
|
|
|
☝️ The namespace .empty is empty.
|
2021-12-07 00:15:40 +03:00
|
|
|
|
|
|
|
```
|
2021-12-09 01:39:48 +03:00
|
|
|
Add and then delete a term to add some history to a deleted namespace.
|
|
|
|
|
|
|
|
```unison
|
|
|
|
deleted.x = 1
|
|
|
|
stuff.thing = 2
|
|
|
|
```
|
|
|
|
|
2021-12-13 21:14:16 +03:00
|
|
|
## fork
|
|
|
|
|
2021-12-09 01:39:48 +03:00
|
|
|
I should be allowed to fork over a deleted namespace
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
.> fork stuff deleted
|
|
|
|
|
|
|
|
Done.
|
|
|
|
|
|
|
|
```
|
|
|
|
The history from the `deleted` namespace should have been overwritten by the history from `stuff`.
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
.> history stuff
|
|
|
|
|
|
|
|
Note: The most recent namespace hash is immediately below this
|
|
|
|
message.
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-14 22:31:57 +03:00
|
|
|
□ 1. #q2dq4tsno1 (start of history)
|
2021-12-09 01:39:48 +03:00
|
|
|
|
|
|
|
.> history deleted
|
|
|
|
|
|
|
|
Note: The most recent namespace hash is immediately below this
|
|
|
|
message.
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-14 22:31:57 +03:00
|
|
|
□ 1. #q2dq4tsno1 (start of history)
|
2021-12-09 01:39:48 +03:00
|
|
|
|
|
|
|
```
|
2021-12-13 21:14:16 +03:00
|
|
|
## move.namespace
|
|
|
|
|
|
|
|
```unison
|
|
|
|
moveoverme.x = 1
|
|
|
|
moveme.y = 2
|
|
|
|
```
|
|
|
|
|
|
|
|
I should be able to move a namespace over-top of a deleted namespace.
|
|
|
|
The history should be that of the moved namespace.
|
|
|
|
|
|
|
|
```ucm
|
|
|
|
.> delete.namespace moveoverme
|
|
|
|
|
2022-06-06 20:59:53 +03:00
|
|
|
Done.
|
2021-12-13 21:14:16 +03:00
|
|
|
|
|
|
|
.> history moveme
|
|
|
|
|
|
|
|
Note: The most recent namespace hash is immediately below this
|
|
|
|
message.
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-14 22:31:57 +03:00
|
|
|
□ 1. #c5uisu4kll (start of history)
|
2021-12-13 21:14:16 +03:00
|
|
|
|
|
|
|
.> move.namespace moveme moveoverme
|
|
|
|
|
|
|
|
Done.
|
|
|
|
|
|
|
|
.> history moveoverme
|
|
|
|
|
|
|
|
Note: The most recent namespace hash is immediately below this
|
|
|
|
message.
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-14 22:31:57 +03:00
|
|
|
□ 1. #c5uisu4kll (start of history)
|
2021-12-13 21:14:16 +03:00
|
|
|
|
|
|
|
```
|