Supermirror problems
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 10 22:43:44 GMT 2006
James Blackwell wrote:
> Would anybody happen to know of conditions that can cause branch-format to
> be zeroed out?
>
> For a reason that I havent' ascertained yet, the supermirror initially
> mirrors branches. On some later mirror, the branch format file gets turned
> into a zero length file.
>
As far as I know, the only time we create .bzr/branch-format is when we
first initialize a branch, or if we upgrade a branch. (Say the first
time you pull). After that, all the code is read-only.
$ grep -rnI "branch-format" bzrlib/
> bzrlib/upgrade.py:147: os.remove(self.branch.controlfilename('branch-format'))
Remove the old one while we upgrade
> bzrlib/upgrade.py:188: self.branch.put_controlfile('branch-format', format)
Set it to the new one
> bzrlib/tests/test_upgrade.py:92: ('.bzr/branch-format', 'Bazaar-NG branch, format 0.0.4\n'),
> bzrlib/tests/test_upgrade.py:134: ( './.bzr/branch-format',
> bzrlib/tests/test_upgrade.py:199: ( './.bzr/branch-format',
Tests involving the branch format
> bzrlib/tests/test_sftp_transport.py:278: self.failUnlessExists('.bzr/branch-format')
Another test
> bzrlib/tests/test_fetch.py:231: self.failUnless(self.weblogs[0].endswith('branch-format HTTP/1.1" 200 -'))
Test again
> bzrlib/branch.py:803: ('branch-format', BZR_BRANCH_FORMAT_6),
Create it during branch initialization
bzrlib/branch.py:825: fmt = self.controlfile('branch-format',
'r').read()
Read only
bzrlib/info.py:36: print 'branch format:',
b.controlfile('branch-format', 'r').readline().rstrip('\n')
Read only.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060110/8a035178/attachment.pgp
More information about the bazaar
mailing list