Error upgrading to KnitPack1 from Knit3 using 'bzr upgrade'

Asked by Max Bossino

Hi,

Every time I issue a bzr command within the mira branch (obtained from this repository: https://code.launchpad.net/~mira-core-development-team/mira/trunk), bzr issues a warning to upgrade the repository from RepositoryFormatKnit3 to RepositoryFormatKnitPack1 using the 'bzr upgrade' command.

Both a fellow developer and I have tried to upgrade the repository using this command to no avail. The error that is produced when 'bzr upgrade' is run is shown below:

------
max@devbox:~/Documents/bzr$ bzr co lp:mira
Format <RepositoryFormatKnit3> for lp-45955728:///~mira-core-development-team/mira/trunk/.bzr is deprecated - please use 'bzr upgrade' to get better performance
Format <RepositoryFormatKnit3> for bzr+ssh://<email address hidden>/%7Emira-core-development-team/mira/trunk/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance

max@devbox:~/Documents/bzr/mira$ bzr st
Format <RepositoryFormatKnit3> for file:///home/max/Documents/bzr/mira/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance

max@devbox:~/Documents/bzr/mira$ bzr upgrade
Format <RepositoryFormatKnit3> for file:///home/max/Documents/bzr/mira/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
starting upgrade of file:///home/max/Documents/bzr/mira/
making backup of tree history
file:///home/max/Documents/bzr/mira/.bzr has been backed up to file:///home/max/Documents/bzr/mira/backup.bzr
if conversion fails, you can move this directory back to .bzr
if it succeeds, you can remove this directory if you wish
starting repository conversion
bzr: ERROR: Cannot convert to format <RepositoryFormatKnitPack1>. Does not support rich root data.
------

I have searched around for a solution to this error but have not found one. Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Matt Nordhoff
Solved:
Last query:
Last reply:
Revision history for this message
Best Matt Nordhoff (mnordhoff) said :
#1

You have two problems:

1.) The format lp:mira is currently in (dirstate-with-subtree) is not compatible with the default format, and "bzr upgrade" doesn't handle that well. Try something like this:

$ bzr upgrade --pack-0.92-subtree

2.) To upgrade the copy on the server, you need to run "bzr upgrade" against it as well:

$ bzr upgrade --pack-0.92-subtree lp:mira

(Note: That may take a while, especially if the branch is large or depending on your version of bzr.)

Revision history for this message
Max Bossino (j-k9) said :
#2

Thanks Matt Nordhoff, that solved my question.