Comment 1 for bug 151027

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 151027] [bug] RepoFetcher run between the same location

On Tue, 2007-10-09 at 18:11 +0000, John A Meinel wrote:
> Public bug reported:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I just did this:
>
> cd bzr.dev
> bzr up
>
> And in another terminal I did
>
> bzr branch bzr.dev test-branch
>
> And I got:
> bzr: ERROR: RepoFetcher run between two objects at the same location:
> KnitRepository('file:///home/jameinel/dev/bzr/.bzr/') and
> KnitRepository('file:///home/jameinel/dev/bzr/.bzr/')
>
> What happened was the second command waited for the first to finish
> (because it wanted to grab a write-lock on a repository). And somewhere
> in all of that timing, it didn't realize that they were the same repository.
>
> I don't know how it got the idea that they were different repositories,
> or that it didn't have the revision it cared about. (It seems like it
> locked for read, and didn't find the revision, so it tried to push it
> later.)

This assert is meant to only be triggered if someone failed to check for
has_same_location in Repository.fetch, or is incorrectly using the
RepoFetcher api directly.

Did you get a backtrace?

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.