Merge lp:~cjwatson/turnip/merge-prerequisite into lp:turnip
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 182 |
Proposed branch: | lp:~cjwatson/turnip/merge-prerequisite |
Merge into: | lp:turnip |
Diff against target: |
141 lines (+68/-17) 3 files modified
turnip/api/store.py (+47/-16) turnip/api/tests/test_api.py (+18/-0) turnip/api/views.py (+3/-1) |
To merge this branch: | bzr merge lp:~cjwatson/turnip/merge-prerequisite |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+269512@code.launchpad.net |
Commit message
Add an optional sha1_prerequisite parameter to compare-merge API.
Description of the change
Add an optional sha1_prerequisite parameter to compare-merge API.
This involves writing a temporary tree object, so I made sure to use an ephemeral repository in this case in order that we aren't relying on GC to clean things up for us later. The algorithm is the same as that used by Launchpad for Bazaar: diff(merge prerequisite into target, merge source into target).
To post a comment you must log in.