unison/unison-src/transcripts/dont-upgrade-refs-that-exist-in-old.md

20 lines
440 B
Markdown

If `foo#old` exists in old, and `foo#new` exists in new, you might think `upgrade old new` would rewrite references to
`#old` with references to `#new`. And it will... !!unless!! `#old` still exists in new.
```ucm:hide
foo/main> builtins.merge lib.builtin
```
```unison
lib.old.foo = 18
lib.new.other = 18
lib.new.foo = 19
mything = lib.old.foo + lib.old.foo
```
```ucm
foo/main> add
foo/main> upgrade old new
foo/main> view mything
```