Advertising
- Anonymous
- Monday, January 28th, 2008 at 11:39:02pm UTC
- It occurred to me the other day that while to those of us actively participating and following bazaar's development, it's very obvious what one of the major improvements that came with the release of 1.0, a new storage format with performance as a priority.
- This new storage format also brought many long awaited bug fixes, so I think it was not stressed enough how important it is to upgrade any branches you created (or started using) with any version before 1.0.
- To find out what storage format you are currently using, just go the the branches folder and type in:
- [email protected]:~/test_branch$ bzr info
- That should give you an output similar to this:
- [email protected]:~/test_branch$ bzr info
- Standalone tree (format: dirstate)
- Location:
- branch root: .
- Related branches:
- parent branch: /home/beuno/test_branch_parent
- If it's reporting format: dirstate (or anything different than format: pack-0.92) then you're still using the old storage format. How to upgrade is documented in the bzr documentation, including preparation and upgrading, but for you lazy fellows, here's how it goes:
- First let's see if there is any inconsistent data in our repository:
- [email protected]:~/test_branch$ bzr check
- If that reports any problems, make sure you run:
- [email protected]:~/test_branch$ bzr reconcile
- (if this seems to take too long, and you're using dirstate format, it might be safe to do reconcile after upgrading, it should be faster)
- Once that's done, you can go ahead and do the actual upgrade:
- [email protected]:~/test_branch$ bzr upgrade
- (if you're using shared repositories, make sure you specify where the root repository is with bzr upgrade root-repo-dir)
- If the operation doesn't report any problems, run a quick bzr info to make sure the repository has been updated correctly and you should be able to delete the backup of the old storage format dir renamed to .bzr.backup/ (WARNING: make sure everything is working correctly before you do this).
- If you have branches in Launchpad, you have to do the upgrades via SFTP instead of bzr+ssh (and I do recommend having all branches with the same storage format)
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.