Merge lp:~thumper/launchpad/deleting-individual-branch-revisions into lp:launchpad
Proposed by
Tim Penhey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Paul Hummer | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11534 | ||||
Proposed branch: | lp:~thumper/launchpad/deleting-individual-branch-revisions | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
443 lines (+109/-88) 10 files modified
lib/canonical/config/schema-lazr.conf (+1/-0) lib/lp/code/configure.zcml (+0/-11) lib/lp/code/doc/revision.txt (+5/-18) lib/lp/code/interfaces/branch.py (+6/-0) lib/lp/code/interfaces/branchrevision.py (+3/-8) lib/lp/code/model/branch.py (+13/-9) lib/lp/code/model/branchrevision.py (+4/-18) lib/lp/code/model/tests/test_branch.py (+56/-2) lib/lp/codehosting/scanner/bzrsync.py (+20/-17) lib/lp/codehosting/scanner/tests/test_bzrsync.py (+1/-5) |
||||
To merge this branch: | bzr merge lp:~thumper/launchpad/deleting-individual-branch-revisions | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | Approve | ||
Review via email: mp+34943@code.launchpad.net |
Commit message
Stop deleting branch revision objects by their ids.
Description of the change
This is a pre-branch branch.
The work coming is to remove the BranchRevision.id column. In order to do this we need to update the code that is currently using it.
The only place it is really used is in the branch scanner where it is used to remove BranchRevision rows for revisions that are no longer in the ancestry of a branch due to `push --overwrite`.
The way to delete branch revision objects has been moved onto the branch object itself, and it now handles deleting multiple branch revisions at once.
To post a comment you must log in.
Diff is a little extreme as I thought that db-stable had been merged back into devel already.