summaryrefslogtreecommitdiff
path: root/tests.branching/status-in-dirty-branch.script
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-06-04 20:39:07 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-06-08 12:06:56 +0000
commitce779c2b6883fbc83f9bae72d4a97f4a8c823ccc (patch)
tree79e9f6814443be06eedda3d1cec5dd958de551d1 /tests.branching/status-in-dirty-branch.script
parente88455c62914ed70b439b37c2ba64a446cb295c3 (diff)
downloadmorph-ce779c2b6883fbc83f9bae72d4a97f4a8c823ccc.tar.gz
Simplify morph edit syntax and logic
Since we removed ref: fields from the system morph files, some of the logic in morph edit is no longer needed. In particular, running morph edit <system> <stratum> is a no-op. This is because the version of <system> and <stratum> are now implicit from the context of what we are doing. In other words we're always working with the current version of <system> and <stratum> from the system branch we are in. Because of the complexity of morph's logic, we didn't notice this when dropping the ref: fields, and we missed the opportunity to simplify our logic for 'morph edit' This patch aims to provide the simplest possible implementation of morph edit: morph edit <chunk> It checks all strata for instances of <chunk>, and does what morph edit should do for the instances it finds. A later patch can add warnings to help users deal with situations where <chunk> is not found, or is found more than once. Also since this changes the syntax of morph, it breaks many of our tests. Later patches will address that.
Diffstat (limited to 'tests.branching/status-in-dirty-branch.script')
0 files changed, 0 insertions, 0 deletions