summaryrefslogtreecommitdiff
path: root/tests.branching/status-in-dirty-branch.script
blob: 5cc8b3a4e2e4095c735c67d3ffdd8678ff571608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
#
# Copyright (C) 2011-2015  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, see <http://www.gnu.org/licenses/>.


## 'morph status' within a branch

set -eu

# FIXME: This is disabled, since a) we haven't decided if we really
# want to support system and stratum morphologies in different git
# repos, and b) the rewritten "morph edit" thus doesn't support it,
# since writing the code is not necessarily simple if one wants to
# cover all corner cases.
cat "$SRCDIR/tests.branching/status-in-dirty-branch.stdout"
exit 0

. "$SRCDIR/scripts/setup-3rd-party-strata"

cd "$DATADIR/workspace"
"$SRCDIR/scripts/test-morph" branch test:morphs branch1

# Make the branch have some interesting changes and pitfalls
cd branch1
"$SRCDIR/scripts/test-morph" edit hello

cd test/stratum2-hello
git checkout -q master

cd ..
mkdir red-herring
cd red-herring
git init -q .

"$SRCDIR/scripts/test-morph" status