def up.moves

ezx@1.11.0.0 · src/ws/up.bend:291

import ezx@1.11.0.0/src/ws/up.bend as Up
import Base
import ezx@1.11.0.0/src/lock/world.bend as LW
import ezx@1.11.0.0/src/ws/joint.bend as J
import ezx@1.11.0.0/src/ws/moved.bend as Mv

291# an upgrade at a workspace root, once its moves are known: the World with
292# every committed file rewritten by them, and the writes of the files they
293# change
294def up.moves(+ms: List<&2, Mv.Shift>, +text: String, +fs: List<&2, J.Found>, +world: LW.World) -> Up:
295  +files = files.of(world)
296  +moved = Mv.rewrite(Mv.swaps(ms), files)
297  Up{Mv.world.moved(J.joint(text, fs, moved), moved, world), Mv.edits(Mv.swaps(ms), files)}

Uses (12)

Used by (1)