def edit.sources
import ezx@1.11.0.0/src/lock/up.bend as Upimport Base
import ezx@1.11.0.0/src/ledger/upgrade.bend as U
1128# every source with each moved hash rewritten in its imports, written only
1129# when that changes it
1130def edit.sources(fs: List<&2, Found>, +es: List<&2, U.Swap>) -> List<&2, Edit>:
1131 match fs:
1132 case []:
1133 []
1134 case Found{+at, +text} <> t:
1135 +next = U.reimport.many(es, text)
1136 edit.if(String.eq(next, text), at, next, edit.sources(t, es))