diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-10-12 17:16:35 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-10-12 17:27:09 +0100 |
commit | 8d4073d89ca66b2334e0e7d9fb08f6c73875ff7e (patch) | |
tree | 69efe75663b1d7f2ed8e9680295db15dfcbf26aa /tests.branching/status-in-workspace.script | |
parent | a6bc2829211ceda1f07386d381e67a983fbb063b (diff) | |
download | morph-8d4073d89ca66b2334e0e7d9fb08f6c73875ff7e.tar.gz |
morph status: Add initial version of command
This provides a user-friendly summary of the workspace or branch status.
Diffstat (limited to 'tests.branching/status-in-workspace.script')
-rwxr-xr-x | tests.branching/status-in-workspace.script | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests.branching/status-in-workspace.script b/tests.branching/status-in-workspace.script new file mode 100755 index 00000000..5e13b433 --- /dev/null +++ b/tests.branching/status-in-workspace.script @@ -0,0 +1,29 @@ +#!/bin/sh +# Copyright (C) 2011, 2012 Codethink Limited +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + +# 'morph status' within a workspace + +set -eu + +cd "$DATADIR/workspace" +"$SRCDIR/scripts/test-morph" init . +"$SRCDIR/scripts/test-morph" checkout baserock:morphs master +"$SRCDIR/scripts/test-morph" branch baserock:morphs a/b/c/d/e/foo +"$SRCDIR/scripts/test-morph" branch baserock:morphs a/b/c/d/e/bar +mkdir a/b/c/red-herring + +"$SRCDIR/scripts/test-morph" status |