bzr push from 2a to older format may corrupt branch?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Andrew Bennetts | ||
2.0 |
Fix Released
|
Undecided
|
Unassigned | ||
2.1 |
Fix Released
|
Undecided
|
Unassigned | ||
Launchpad itself |
Fix Released
|
High
|
Unassigned | ||
bzr (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I had an older branch on launchpad that I did some work on today. Somewhere along the line it seems to have gotten corrupted as I now get tracebacks when doing bzr log, bzr diff -r latest:1, and several other commands. (Will attach .bzr.log for those)
The launchpad branch is here. It was not in 2a format when I started work this morning but as part of trying to get rid of the tracebacks, I pushed the upgrade branch button in launchpad:
https:/
The branch I have locally is in 2a format. I've pushed that to another location on launchpad in case it's useful:
bzr client version 2.0.5
This is more or less what I've done (reconstructed from my shell's history)
bzr merge # Pull latest revisions in from lp:bzr-gtk
bzr commit
vim diff.py # Make a small addition to diff.py
bzr status
bzr diff
bzr commit
# Decide I should have been more verbose in my comments
bzr uncommit
bzr status # Check that my changes are present
vim diff.py # Add extra comment
bzr commit
bzr push # remembered location lp:~toshio/bzr-gtk/handle-patch-fix
I then checked what was going on on launchpad and found that the web viewer wasn't showing the latest revisions so I decided to check what the branch showed when I branched it.
cd ..
bzr branch lp:~toshio/bzr-gtk/handle-patch-fix
cd handle-patch-fix
ls
bzr log
# Traceback
After getting the traceback I tried a variety of things. It looks like things that touch history (bzr diff -r latest:1, bzr log) are hitting the corruption. Things that don't touch history (bzr status, bzr info) are not. I also pressed the button in the launchpad UI to upgrade the format as I thought that it migt be something in the on-the-fly repository conversion. (Note: when I branch lp:~toshio/bzr-gtk/handle-patch-fix currently, it does not retrieve a 2a format branch even though the launchpad UI says the update has finished).
Related branches
- bzr-core: Pending requested
-
Diff: 139 lines (+40/-5)5 files modifiedNEWS (+6/-0)
bzrlib/remote.py (+12/-0)
bzrlib/tests/per_repository_reference/__init__.py (+17/-0)
bzrlib/tests/per_repository_reference/test_default_stacking.py (+0/-1)
bzrlib/tests/test_remote.py (+5/-4)
- Vincent Ladeuil: Approve
-
Diff: 139 lines (+40/-5)5 files modifiedNEWS (+6/-0)
bzrlib/remote.py (+12/-0)
bzrlib/tests/per_repository_reference/__init__.py (+17/-0)
bzrlib/tests/per_repository_reference/test_default_stacking.py (+0/-1)
bzrlib/tests/test_remote.py (+5/-4)
- Vincent Ladeuil: Approve
-
Diff: 139 lines (+40/-5)5 files modifiedNEWS (+6/-0)
bzrlib/remote.py (+12/-0)
bzrlib/tests/per_repository_reference/__init__.py (+17/-0)
bzrlib/tests/per_repository_reference/test_default_stacking.py (+0/-1)
bzrlib/tests/test_remote.py (+5/-4)
Changed in bzr: | |
importance: | High → Critical |
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | nobody → Andrew Bennetts (spiv) |
Changed in launchpad-code: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in bzr: | |
milestone: | none → 2.2b3 |
Changed in bzr (Ubuntu): | |
status: | New → Fix Released |
One further note, I've submitted the changes I was working on here in another branch. So you can play around with these however you like. I won't touch them until this bug is closed.