2021-12-07 00:38:09 +03:00
|
|
|
# Empty namespace behaviours
|
|
|
|
|
2021-12-07 00:06:11 +03:00
|
|
|
```unison:hide
|
2021-12-06 23:44:40 +03:00
|
|
|
mynamespace.x = 1
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
|
|
|
scratch/main> delete.namespace mynamespace
|
2021-12-06 23:44:40 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
The deleted namespace shouldn't appear in `ls` output.
|
2021-12-07 00:06:11 +03:00
|
|
|
```ucm:error
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> ls
|
2021-12-06 23:44:40 +03:00
|
|
|
```
|
2021-12-07 00:06:11 +03:00
|
|
|
```ucm:error
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find.verbose
|
2021-12-07 00:06:11 +03:00
|
|
|
```
|
|
|
|
```ucm:error
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find mynamespace
|
2021-12-07 00:06:11 +03:00
|
|
|
```
|
2021-12-07 00:09:58 +03:00
|
|
|
|
2021-12-09 01:34:17 +03:00
|
|
|
## history
|
2021-12-07 00:09:58 +03:00
|
|
|
|
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
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> history mynamespace
|
2021-12-07 00:09:58 +03:00
|
|
|
```
|
|
|
|
|
2021-12-07 00:43:56 +03:00
|
|
|
Add and then delete a term to add some history to a deleted namespace.
|
|
|
|
|
2021-12-07 00:38:09 +03:00
|
|
|
```unison:hide
|
2021-12-07 00:43:56 +03:00
|
|
|
deleted.x = 1
|
|
|
|
stuff.thing = 2
|
2021-12-07 00:38:09 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
|
|
|
scratch/main> delete.namespace deleted
|
2021-12-07 00:38:09 +03:00
|
|
|
```
|
|
|
|
|
2021-12-13 20:57:37 +03:00
|
|
|
## fork
|
|
|
|
|
2021-12-07 00:43:56 +03:00
|
|
|
I should be allowed to fork over a deleted namespace
|
2021-12-07 00:38:09 +03:00
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> fork stuff deleted
|
2021-12-07 00:38:09 +03:00
|
|
|
```
|
|
|
|
|
2021-12-07 00:43:56 +03:00
|
|
|
The history from the `deleted` namespace should have been overwritten by the history from `stuff`.
|
2021-12-07 00:38:09 +03:00
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> history stuff
|
|
|
|
scratch/main> history deleted
|
2021-12-07 00:38:09 +03:00
|
|
|
```
|
2021-12-13 20:57:37 +03:00
|
|
|
|
|
|
|
## move.namespace
|
|
|
|
|
|
|
|
```unison:hide
|
|
|
|
moveoverme.x = 1
|
|
|
|
moveme.y = 2
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2021-12-13 20:57:37 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
I should be able to move a namespace over-top of a deleted namespace.
|
|
|
|
The history should be that of the moved namespace.
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> delete.namespace moveoverme
|
|
|
|
scratch/main> history moveme
|
|
|
|
scratch/main> move.namespace moveme moveoverme
|
|
|
|
scratch/main> history moveoverme
|
2021-12-13 20:57:37 +03:00
|
|
|
```
|