diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-08-29 15:59:02 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-08-29 18:49:31 +0100 |
commit | ce83a0afe0a51c9b8ab75e89d23f45c3ebf2be93 (patch) | |
tree | 1cb88b939109007383f4dec3da61e1b66c6d76cc /tests.branching/edit-clones-chunk.script | |
parent | 34c03048cc99e8a8abeb3e3c99574a92a2acb00a (diff) | |
download | morph-ce83a0afe0a51c9b8ab75e89d23f45c3ebf2be93.tar.gz |
Remember repository that was branched off from for merging and editing
With this commit, "morph branch" and "morph checkout" remember the
repository that was branched off from (the "branch root") in a special
file called
$workspace/$branch/.morph-system-branch/branch-root
This information is later used when checking out individual
repositories using "morph edit" instead of using the previously
hard-coded "$workspace/$branch/morphs" repository as the branch
root.
This commit also updates the "morph merge" code to handle repositories
specified with aliases or as full URLs in the same way "morph checkout"
does.
All affected tests are updated.
Diffstat (limited to 'tests.branching/edit-clones-chunk.script')
-rwxr-xr-x | tests.branching/edit-clones-chunk.script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests.branching/edit-clones-chunk.script b/tests.branching/edit-clones-chunk.script index 20f62a27..d5e117cb 100755 --- a/tests.branching/edit-clones-chunk.script +++ b/tests.branching/edit-clones-chunk.script @@ -38,9 +38,10 @@ echo "Current origin, morphs:" sed 's,\(TMP/workspace/\.morph/cache/gits/file_\).*_,\1,g' echo "Current branches, hello:" -"$SRCDIR/scripts/run-git-in" "$DATADIR/workspace/newbranch/hello" branch +"$SRCDIR/scripts/run-git-in" \ + "$DATADIR/workspace/newbranch/baserock:hello" branch echo "Current origin, hello:" -"$SRCDIR/scripts/run-git-in" "$DATADIR/workspace/newbranch/hello" \ +"$SRCDIR/scripts/run-git-in" "$DATADIR/workspace/newbranch/baserock:hello" \ remote show origin | \ sed 's,\(TMP/workspace/\.morph/cache/gits/file_\).*_,\1,g' |