summaryrefslogtreecommitdiff
path: root/tests.branching/init-newdir.script
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up command testsSam Thursfield2012-11-141-3/+4
| | | | Be consistent about placement of test description, blank lines, etc.
* Make "morph show-system-branch" anywhere in a workspace, if possibleJannis Pohlmann2012-08-291-3/+3
| | | | | | | | | | | | | | | | | | | | | There are mainly three situations to deal with: 1. We are outside a workspace and cannot deduce the system branch. 2. We are inside a workspace and inside a branch. We can detect this by walking up from the working directory towards the workspace. If we find a .morph-system-branch in one of the parent directories, we know the branch name. If we don't find one, something is wrong. 3. We are inside a workspace but outside a branch (or partially into a branch, e.g. in foo/ where the branch is foo/bar). We can deduce the branch if we recurse into subdirectories to find a .morph-system-branch directory. Care needs to be taken to not recurse infinitely. We may also not recurse if there are multiple subdirectories as these could belong to two different branches. This commit makes "morph show-system-branch" work in all of the above scenarios. It also adds tests for all of them.
* Create mine directory if it does not exists when running "morph init"Jannis Pohlmann2012-08-281-3/+3
| | | | | Until now, morph failed when the mine directory did not exist. However, there is no good reason why it can't attempt to create it.
* Implement "morph init" and fix tests accordinglyLars Wirzenius2012-03-221-0/+1
|
* Add test cases for "morph init"Lars Wirzenius2012-03-221-0/+23