Merge lp:~jelmer/bzr/314314-obsolete-packs into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6362 |
Proposed branch: | lp:~jelmer/bzr/314314-obsolete-packs |
Merge into: | lp:bzr |
Diff against target: |
91 lines (+43/-3) 3 files modified
bzrlib/repofmt/pack_repo.py (+17/-3) bzrlib/tests/test_repository.py (+23/-0) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
To merge this branch: | bzr merge lp:~jelmer/bzr/314314-obsolete-packs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Bazaar Developers | Pending | ||
John A Meinel | Pending | ||
Jelmer Vernooij | Pending | ||
Review via email: mp+85247@code.launchpad.net |
This proposal supersedes a proposal from 2011-10-19.
Commit message
Deal with the obsolete_packs directory being removed from under us.
Description of the change
Create obsolete_packs directory when repacking if it does not exist, and ignore it when it doesn't exist when trying to clean it up.
Original proposal by Jonathan Riddell, updated to address review comments.
To post a comment you must log in.
I'm not sure if this is the right place for the test, but I don't have an idea for a better one. Ideally we would want to test this for all formats for which it is relevant (rather than in a blackbox test, which only exercises the default format). That's pretty hard though - we can't use bt.per_repository, as it's an implementation detail.