'branch' failed on Windows XP with StopIteration exception

James P. Gray jamespgray at gmail.com
Sat Mar 25 21:28:05 GMT 2006


I setup apache web server (version 2.0.55) on my windows machine and 
tried to create a new branch on the same machine by going through the 
web server using the native Windows bzr 0.7 from 
http://bazaar-vcs.org/WindowsDownloads and later from the development 
branch at http://bazaar-ng.org/bzr/bzr.dev/.  The rest of the 
information below relates to the issue with the dev version.  0.7 got a 
different exception.

When I create a branch locally (not though http) things work fine.  
Creating a branch on my Ubuntu system (Dapper flight 5, bzr 0.8pre) also 
works fine branching from the same example branch on windows.  i.e."bzr 
branch http://windowshost/branch test"

I was able to reproduce this using a simple batch script with a few 
commands ("call" is needed to keep from terminating the original when 
calling another batch file):

mkdir tmp
call bzr init tmp
echo x > tmp\a.txt
call bzr add tmp\a.txt
call bzr commit tmp -m "new file"
call bzr branch http://gandalf:5437/tmp x
call bzr branch J:\a\repository\tmp y

I've posted some of the details and created a quick link - 
http://xrl.us/problem
Details include log file for all of the transactions in my test & the 
screen output.

The branch-format 
<http://mysite.verizon.net/vzep3bxh/bzr_problem/branch-format> file 
contains "Bazaar-NG branch, format 6" while the _read_weave_v5 function 
(in traceback below) looks like the handler for format 5.  I didn't see 
a _read_weave_v6 anywhere.  I must be missing something, perhaps I need 
to create a format 5 branch?  If so how? 
<http://mysite.verizon.net/vzep3bxh/bzr_problem/branch-format>

The first branch fails, while the first succeeds.  The last lines of the 
traceback are:

File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\decorators.py", line 
38, in read_locked

    return unbound(self, *args, **kwargs)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\repository.py", line 177, in missing_revision_ids
    return InterRepository.get(other, self).missing_revision_ids(revision_id)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\repository.py", line 1573, in missing_revision_ids
    source_ids = self.source.get_ancestry(revision_id)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\repository.py", line 521, in get_ancestry
    w = self.get_inventory_weave()
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\repository.py", line 383, in get_inventory_weave
    self.get_transaction())
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\store\versioned\__init__.py", line 116, in get_weave
    access_mode='r')
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\weave.py", line 1058, in __init__
    _read_weave_v5(self._transport.get(name + WeaveFile.WEAVE_SUFFIX), self)
  File "j:\b\aps\py\python24\Lib\site-packages\bzrlib\weavefile.py", line 127, in _read_weave_v5
    l = lines.next()
StopIteration

return code 3

Let me know if there is any additional information that will be of help.

Thanks to everyone who has been working on bzr!

James






More information about the bazaar mailing list