mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
32 lines
424 B
Markdown
32 lines
424 B
Markdown
```ucm:hide
|
|
proj/main> builtins.merge lib.builtin
|
|
```
|
|
|
|
```unison
|
|
lib.old.foo = 17
|
|
lib.new.foo = +18
|
|
thingy = lib.old.foo + 10
|
|
```
|
|
|
|
```ucm
|
|
proj/main> add
|
|
```
|
|
|
|
```ucm:error
|
|
proj/main> upgrade old new
|
|
```
|
|
|
|
Resolve the error and commit the upgrade.
|
|
|
|
```unison
|
|
thingy = foo + +10
|
|
```
|
|
|
|
```ucm
|
|
proj/upgrade-old-to-new> update
|
|
proj/upgrade-old-to-new> upgrade.commit
|
|
proj/main> view thingy
|
|
proj/main> ls lib
|
|
proj/main> branches
|
|
```
|