def hash.kept
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
568# the hash a pinned commit's checkout has, by the rule the pin was taken by:
569# the walk's, or, for a pin written before bend 2.0.27 took the LICENSE files
570# along, the same checkout's without them. A pin that is neither is a drift,
571# and names the walk's hash.
572def hash.kept(+pin: String, +manifest: String) -> String:
573 +full = hash.of(manifest)
574 hash.kept.pick(String.eq(full, pin), pin, full, manifest)