From c9237342cd3f98698522020eb946912a38230081 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sun, 22 Nov 2015 14:43:43 +0000 Subject: yarns: remove unused morph status implementations Change-Id: Ie190d444346448f928a1bb6aaf0863f2fd4521b8 --- yarns/implementations.yarn | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index ea0ae2c8..72e73ae3 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -542,49 +542,6 @@ print-architecture` to get a value appropriate for morph. EOF git checkout - -Reporting status of checked out repositories: - - IMPLEMENTS THEN morph reports no outstanding changes in (\S+) - cd "$DATADIR/workspace/$MATCH_1" - run_morph status > "$DATADIR/morph.stdout" - grep '^No repos have outstanding changes.' "$DATADIR/morph.stdout" - - IMPLEMENTS THEN morph reports changes in (\S+) in (\S+) only - cd "$DATADIR/workspace/$MATCH_1" - run_morph status > "$DATADIR/morph.stdout" - - # morph status is expected to produce records like this: - # On branch GITBRANCH, root baserock:baserock/morphs - # GITREPO: uncommitted changes - # We check thet GITREPO matches $MATCH_2. - - awk '/: uncommitted changes$/ { print substr($1,1,length($1)-1) }' \ - "$DATADIR/morph.stdout" > "$DATADIR/changed.actual" - echo "$MATCH_2" > "$DATADIR/changed.wanted" - diff -u "$DATADIR/changed.wanted" "$DATADIR/changed.actual" - - IMPLEMENTS THEN morph reports changes in (\S+) in (\S+) and (\S+) - cd "$DATADIR/workspace/$MATCH_1" - run_morph status > "$DATADIR/morph.stdout" - echo "status morph.stdout:" - cat "$DATADIR/morph.stdout" - awk '/: uncommitted changes$/ { print substr($1,1,length($1)-1) }' \ - "$DATADIR/morph.stdout" | sort > "$DATADIR/changed.actual" - (echo "$MATCH_2"; echo "$MATCH_3") | sort > "$DATADIR/changed.wanted" - diff -u "$DATADIR/changed.wanted" "$DATADIR/changed.actual" - - IMPLEMENTS WHEN creating file (\S+) in (\S+) in branch (\S+) - touch "$DATADIR/workspace/$MATCH_3/$MATCH_2/$MATCH_1" - - IMPLEMENTS WHEN adding file (\S+) in (\S+) in branch (\S+) to git - chunkdir="$(slashify_colons "$MATCH_2")" - cd "$DATADIR/workspace/$MATCH_3/$chunkdir" - git add "$MATCH_1" - - IMPLEMENTS WHEN committing changes in (\S+) in branch (\S+) - cd "$DATADIR/workspace/$MATCH_2/$(slashify_colons "$MATCH_1")" - git commit -a -m test-commit - Generating a manifest. IMPLEMENTS GIVEN a system artifact -- cgit v1.2.1