def swap.of
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
602# a committed tree whose hash changed is a tree to remove
603def swap.of(vend: Bool, +old: String, +new: String) -> String:
604 match vend:
605 case False{}:
606 ""
607 case True{}:
608 swap.hash(String.eq(old, new), old)