def loc.rev
import ezx@1.11.0.0/src/tool/plan.bend as Planimport Base
254# the commit of a local target, "" while it is not known
255def loc.rev(spot: Loc) -> String:
256 match spot:
257 case Loc{abs, top, head, ok, status}:
258 local.rev(abs, top, head, ok, status)
259 case LocWait{_a}:
260 ""
261 case LocNo{_why}:
262 ""