diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-09-17 15:18:24 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-09-17 18:46:38 +0100 |
commit | d08d0afa388c8767a2e6eb13b8ba0c53e531e23f (patch) | |
tree | ba986d0a282f141c10bd98a23dff1bdc3a55b8e3 /tests.branching/edit-clones-chunk.script | |
parent | ad437ca48f49c0d5a8581a73175d38afc9d3f973 (diff) | |
download | morph-d08d0afa388c8767a2e6eb13b8ba0c53e531e23f.tar.gz |
Update branching tests to use 'morph foreach'
Diffstat (limited to 'tests.branching/edit-clones-chunk.script')
-rwxr-xr-x | tests.branching/edit-clones-chunk.script | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/tests.branching/edit-clones-chunk.script b/tests.branching/edit-clones-chunk.script index db138e59..aef40807 100755 --- a/tests.branching/edit-clones-chunk.script +++ b/tests.branching/edit-clones-chunk.script @@ -28,21 +28,10 @@ cd "$DATADIR/workspace" # Edit chunk. "$SRCDIR/scripts/test-morph" edit hello-system hello-stratum hello -echo "Current branches, morphs:" -"$SRCDIR/scripts/run-git-in" \ - "$DATADIR/workspace/newbranch/baserock:morphs" branch - -echo "Current origin, morphs:" -"$SRCDIR/scripts/run-git-in" \ - "$DATADIR/workspace/newbranch/baserock:morphs" \ - remote show origin | \ - sed 's,\(TMP/workspace/\.morph/cache/gits/file_\).*_,\1,g' - -echo "Current branches, hello:" -"$SRCDIR/scripts/run-git-in" \ - "$DATADIR/workspace/newbranch/baserock:hello" branch - -echo "Current origin, hello:" -"$SRCDIR/scripts/run-git-in" "$DATADIR/workspace/newbranch/baserock:hello" \ - remote show origin | \ - sed 's,\(TMP/workspace/\.morph/cache/gits/file_\).*_,\1,g' +echo "Current branches:" +"$SRCDIR/scripts/test-morph" foreach git branch + +echo +echo "Current origins:" +"$SRCDIR/scripts/test-morph" foreach git remote show origin | \ + sed 's,\(TMP/workspace/\.morph/cache/gits/file_\).*_,\1,g' |