Merge lp:~vila/bzr/697815-repair-repo into lp:bzr
Status: | Work in progress |
---|---|
Proposed branch: | lp:~vila/bzr/697815-repair-repo |
Merge into: | lp:bzr |
Diff against target: |
177 lines (+101/-36) 3 files modified
bzrlib/builtins.py (+27/-2) bzrlib/check.py (+1/-34) tools/repair-repo.py (+73/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/697815-repair-repo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+45945@code.launchpad.net |
Description of the change
This add a script that repair repos containing an empty pack file.
As seen in bug #697815 this repair a broken repository but is an incomplete solution as the branch is left in a broken state.
Still, I don't feel like addressing the later but having this script easily available sounds like a useful thing anyway.
I wanted to add some tests but... this script is not a command and I don't feel like starting a new test infrastructure for that...
So I thought I may ask for feedback about whether it's acceptable to land this first and what people think about:
- turning it into its own command,
- somehow make it part of check/reconcile
- something else
Unmerged revisions
- 5600. By Vincent Ladeuil
-
Unfinished stuff
- 5599. By Vincent Ladeuil
-
Sort the lazy registered commands in ascii order.
- 5598. By Vincent Ladeuil
-
Remove code deprecated in 1.6.0 and 1.16.0.
- 5597. By Vincent Ladeuil
-
Give some context and mention the missing features/tests.
- 5596. By Vincent Ladeuil
-
Add the copyright notice.
- 5595. By Vincent Ladeuil
-
Add the working repair-repo script as-is.
That's useful.
I think putting it into a hidden command is better than putting into
tools/, because the latter will not be easily accessible to people
running bzr from a package or a binary installer.
Ultimately I think this should move into probably reconcile or check.
It might be enough to just give them an option to run this particular
fix, like
check --fixer empty_packs
should run this code.
--
Martin