bzr 0.15rc3 error

John Arbash Meinel john at arbash-meinel.com
Fri Mar 30 18:59:30 BST 2007


David Clymer wrote:
> In the process of updating my version of bazaar and various plugins, I
> got the error below. This only happened when attempting to pull into my
> existing bzr-svn branch. I could branch jelmer's branch without error.
> 
> -davidc

...

>   File "/home/david/dev/version_control/bzr/bzrlib/repository.py", line 1298, in fetch
>     raise NotImplementedError(self.fetch)
> NotImplementedError: <bound method InterRepository.fetch of <bzrlib.repository.InterRepository object at 0x2af6d8646610>>
> 


I'm pretty sure Aaron fixed this to raise a better error. But it looks
to me like upstream is a new repository (Knit3,
--dirstate-with-subtree), and you are trying to pull into an old
repository (Knit1).

We don't allow this because it causes data loss. (The reason for the new
format is that we are storing more information).

Your 'bzr info' also bears this out, since upstream is:

repository: Knit repository format 3

and your local branch is:

repository: Knit repository format 1

I don't know why Jelmer went for (--dirstate-with-subtree), perhaps he
wanted to test nested trees, though I don't know why he would have
updated his bzr-svn branch.

Jelmer, can you enlighten us? Was it just that you got excited and
updated all of your branches?

(It could also be that you wanted tags before we introduced
--dirstate-tags, and used --dirstate-with-subtree).

Anyway, this is the reason '--dirstate-with-subtree' is not default (and
is actually hidden) in bzr-0.15rc3.

So David, if you want Jelmer's newest code, you'll need to do:

bzr upgrade --dirstate-with-subtree

Maybe we can find a way to get Jelmer to switch to '--dirstate-tags'
rather than '--dirstate-with-subtree', so that we don't force everyone
who wants to use 'bzr-svn' to upgrade their repository format.

John
=:->



More information about the bazaar mailing list