mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 11:07:48 +03:00
1.3 KiB
1.3 KiB
Empty namespace behaviours
mynamespace.x = 1
scratch/main> add
scratch/main> delete.namespace mynamespace
The deleted namespace shouldn't appear in ls
output.
scratch/main> ls
scratch/main> find.verbose
scratch/main> find mynamespace
history
The history of the namespace should be empty.
scratch/main> history mynamespace
Add and then delete a term to add some history to a deleted namespace.
deleted.x = 1
stuff.thing = 2
scratch/main> add
scratch/main> delete.namespace deleted
fork
I should be allowed to fork over a deleted namespace
scratch/main> fork stuff deleted
The history from the deleted
namespace should have been overwritten by the history from stuff
.
scratch/main> history stuff
scratch/main> history deleted
move.namespace
moveoverme.x = 1
moveme.y = 2
scratch/main> add
I should be able to move a namespace over-top of a deleted namespace. The history should be that of the moved namespace.
scratch/main> delete.namespace moveoverme
scratch/main> history moveme
scratch/main> move.namespace moveme moveoverme
scratch/main> history moveoverme