def name.put.at
import ezx@1.11.0.0/src/fetch/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
605# a names file written, said first when it held another hash
606def name.put.at(none: Bool, +nv: String, +hash: String, was: String, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
607 match none:
608 case True{}:
609 P.Name{nv, hash} <> rest
610 case False{}:
611 P.Say{name.rewrote(nv, hash, was)} <> P.Name{nv, hash} <> rest