unison/unison-src/transcripts/delete-namespace-dependents-check.md

23 lines
533 B
Markdown
Raw Permalink Normal View History

2024-05-22 21:35:51 +03:00
<!-- https://github.com/unisonweb/unison/issues/4997 -->
# Delete namespace dependents check
This is a regression test, previously `delete.namespace` allowed a delete as long as the deletions had a name _anywhere_ in your codebase, it should only check the current project branch.
``` ucm :hide
2024-05-22 21:35:51 +03:00
myproject/main> builtins.merge
```
``` unison
2024-05-22 21:35:51 +03:00
sub.dependency = 123
dependent = dependency + 99
```
``` ucm :error
2024-05-22 21:35:51 +03:00
myproject/main> add
myproject/main> branch /new
myproject/new> delete.namespace sub
myproject/new> view dependent
```