mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 12:22:10 +03:00
gall: add +trace to scry binding handlers
This commit is contained in:
parent
128375c4aa
commit
e9e803b346
@ -968,7 +968,7 @@
|
||||
=> ?~ bob.u.old
|
||||
.
|
||||
~| gall-grow-bob+[path actual=yon max=u.bob.u.old]
|
||||
?> (gth yon u.bob.u.old)
|
||||
?> (gth yon u.bob.u.old) :: enforce high water mark
|
||||
.
|
||||
=/ val (get:on-path fan.u.old yon)
|
||||
?~ val :: insert binding at new case
|
||||
@ -995,18 +995,29 @@
|
||||
=/ yon ?>(?=(%ud -.case) p.case)
|
||||
=/ old (~(get by sky.yoke) spur)
|
||||
?~ old :: no-op if nonexistent
|
||||
sky.yoke :: TODO trace
|
||||
%. sky.yoke
|
||||
%+ trace odd.veb.bug.state
|
||||
[leaf+"gall: {<agent-name>}: tomb {<[case spur]>} no sky"]~
|
||||
=/ val (get:on-path fan.u.old yon)
|
||||
?~ val :: no-op if nonexistent
|
||||
sky.yoke :: TODO trace
|
||||
%. sky.yoke
|
||||
%+ trace odd.veb.bug.state
|
||||
[leaf+"gall: {<agent-name>}: tomb {<[case spur]>} no val"]~
|
||||
?- -.u.val
|
||||
%| sky.yoke :: already tombstoned
|
||||
%& :: replace with hash
|
||||
%| :: already tombstoned, no-op
|
||||
%. sky.yoke
|
||||
%+ trace odd.veb.bug.state
|
||||
[leaf+"gall: {<agent-name>}: tomb {<[case spur]>} no-op"]~
|
||||
::
|
||||
%& :: replace with hash
|
||||
%+ ~(put by sky.yoke) spur
|
||||
u.old(fan (put:on-path fan.u.old yon [%| (shax (jam p.u.val))]))
|
||||
==
|
||||
:: +ap-cull: delete all bindings up to and including .case
|
||||
::
|
||||
:: Also store .case as the high water mark for .spur
|
||||
:: to prevent any deleted cases from being re-bound later.
|
||||
::
|
||||
++ ap-cull
|
||||
|= [=case =spur]
|
||||
^+ ap-core
|
||||
@ -1014,7 +1025,9 @@
|
||||
=/ yon ?>(?=(%ud -.case) p.case)
|
||||
=/ old (~(get by sky.yoke) spur)
|
||||
?~ old :: no-op if nonexistent
|
||||
sky.yoke :: TODO trace
|
||||
%. sky.yoke
|
||||
%+ trace odd.veb.bug.state
|
||||
[leaf+"gall: {<agent-name>}: cull {<[case spur]>} no-op"]~
|
||||
%+ ~(put by sky.yoke) spur :: delete all older paths
|
||||
[`yon (lot:on-path fan.u.old `+(yon) ~)]
|
||||
:: +ap-from-internal: internal move to move.
|
||||
|
Loading…
Reference in New Issue
Block a user