inaccessible shared repositories

Kent Gibson warthog618 at gmail.com
Sat Dec 9 00:36:22 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



John Arbash Meinel wrote:
> Kent Gibson wrote:
>> I just noticed that this situation also causes the following
>> selftests to fail:
>>
>> branch_txt
kent at ubuntu:~/work/bzr/bzr.dev$ ./bzr selftest branch_txt
       bzr: /home/kent/work/bzr/bzr.dev/bzr
    bzrlib: /home/kent/work/bzr/bzr.dev/bzrlib

FAIL: branch_txt
    Failed doctest test for branch.txt
  File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 0

- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 15,
in branch.txt
Failed example:
    new_branch = BzrDir.create_branch_convenience(test_dir)
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[4]>", line 1, in ?
        new_branch = BzrDir.create_branch_convenience(test_dir)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 296,
in create_branch_convenience
        repo = bzrdir._find_or_create_repository(force_new_repo)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 257,
in _find_or_create_repository
        return self.find_repository()
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 380,
in find_repository
        found_bzrdir = BzrDir.open_containing_from_transport(
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 547,
in open_containing_from_transport
        result = BzrDir.open_from_transport(a_transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 505,
in open_from_transport
        format = BzrDirFormat.find_format(transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1055,
in find_format
        return format.probe_transport(transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1065,
in probe_transport
        format_string = transport.get(".bzr/branch-format").read()
      File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/local.py",
line 138, in get
        self._translate_error(e, path)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/__init__.py",
line 241, in _translate_error
        raise errors.PermissionDenied(path, extra=e)
    PermissionDenied: Permission denied: u'/.bzr/branch-format':
[Errno 13] Permission denied: u'/.bzr/branch-format'
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 19,
in branch.txt
Failed example:
    transport = new_branch.bzrdir.transport
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[5]>", line 1, in ?
        transport = new_branch.bzrdir.transport
    NameError: name 'new_branch' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 20,
in branch.txt
Failed example:
    another_instance = Branch.open(transport.clone('..').base)
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[6]>", line 1, in ?
        another_instance = Branch.open(transport.clone('..').base)
    NameError: name 'transport' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 24,
in branch.txt
Failed example:
    still_the_same_branch = new_branch.bzrdir.open_branch()
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[7]>", line 1, in ?
        still_the_same_branch = new_branch.bzrdir.open_branch()
    NameError: name 'new_branch' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 28,
in branch.txt
Failed example:
    new_branch.revision_history()
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[8]>", line 1, in ?
        new_branch.revision_history()
    NameError: name 'new_branch' is not defined



======================================================================
FAIL: /home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File "doctest.py", line 2157, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for branch.txt
  File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 0

- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 15,
in branch.txt
Failed example:
    new_branch = BzrDir.create_branch_convenience(test_dir)
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[4]>", line 1, in ?
        new_branch = BzrDir.create_branch_convenience(test_dir)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 296,
in create_branch_convenience
        repo = bzrdir._find_or_create_repository(force_new_repo)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 257,
in _find_or_create_repository
        return self.find_repository()
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 380,
in find_repository
        found_bzrdir = BzrDir.open_containing_from_transport(
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 547,
in open_containing_from_transport
        result = BzrDir.open_from_transport(a_transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 505,
in open_from_transport
        format = BzrDirFormat.find_format(transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1055,
in find_format
        return format.probe_transport(transport)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1065,
in probe_transport
        format_string = transport.get(".bzr/branch-format").read()
      File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/local.py",
line 138, in get
        self._translate_error(e, path)
      File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/__init__.py",
line 241, in _translate_error
        raise errors.PermissionDenied(path, extra=e)
    PermissionDenied: Permission denied: u'/.bzr/branch-format':
[Errno 13] Permission denied: u'/.bzr/branch-format'
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 19,
in branch.txt
Failed example:
    transport = new_branch.bzrdir.transport
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[5]>", line 1, in ?
        transport = new_branch.bzrdir.transport
    NameError: name 'new_branch' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 20,
in branch.txt
Failed example:
    another_instance = Branch.open(transport.clone('..').base)
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[6]>", line 1, in ?
        another_instance = Branch.open(transport.clone('..').base)
    NameError: name 'transport' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 24,
in branch.txt
Failed example:
    still_the_same_branch = new_branch.bzrdir.open_branch()
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[7]>", line 1, in ?
        still_the_same_branch = new_branch.bzrdir.open_branch()
    NameError: name 'new_branch' is not defined
- ----------------------------------------------------------------------
File "/home/kent/work/bzr/bzr.dev/bzrlib/doc/api/branch.txt", line 28,
in branch.txt
Failed example:
    new_branch.revision_history()
Exception raised:
    Traceback (most recent call last):
      File "doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest branch.txt[8]>", line 1, in ?
        new_branch.revision_history()
    NameError: name 'new_branch' is not defined


- ----------------------------------------------------------------------
Ran 1 test in 0.108s

FAILED (failures=1)

>> blackbox.test_info.TestInfo.test_info_non_existing
kent at ubuntu:~/work/bzr/bzr.dev$ ./bzr selftest
blackbox.test_info.TestInfo.test_info_non_existing
       bzr: /home/kent/work/bzr/bzr.dev/bzr
    bzrlib: /home/kent/work/bzr/bzr.dev/bzrlib

FAIL: blackbox.test_info.TestInfo.test_info_non_existing
    "bzr: ERROR: Permission denied: u'/.bzr/branch-format': [Errno 13]
Permission denied: u'/.bzr/branch-format'\n" != 'bzr: ERROR: Not a
branch: /i/do/not/exist/\n'


======================================================================
FAIL: test_info_non_existing (bzrlib.tests.blackbox.test_info.TestInfo)

vvvv[log from
bzrlib.tests.blackbox.test_info.TestInfo.test_info_non_existing]
created control directory in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/
creating repository in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/.
creating branch <bzrlib.branch.BzrBranchFormat5 object at 0xb7a58b6c>
in file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/
got branch format Bazaar-NG Metadir branch format 5
got branch format Bazaar-NG Metadir branch format 5
opening working tree '/home/kent/work/bzr/bzr.dev/test0000.tmp'
failed to open
/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache:
[Errno 2] No such file or directory:
u'/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache'
write hc
run bzr: ['info', '/i/do/not/exist/']
encoding stdout as sys.stdout encoding 'UTF-8'
Traceback (most recent call last):
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 626, in
run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 588, in
run_bzr
    ret = run(*run_argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 292, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 598, in
ignore_pipe
    result = func(*args, **kwargs)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/builtins.py", line 933, in run
    show_bzrdir_info(bzrdir.BzrDir.open_containing(location)[0],
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 526, in
open_containing
    return BzrDir.open_containing_from_transport(get_transport(url))
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 547, in
open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 505, in
open_from_transport
    format = BzrDirFormat.find_format(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1055, in
find_format
    return format.probe_transport(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1065, in
probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/local.py", line
138, in get
    self._translate_error(e, path)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/__init__.py",
line 241, in _translate_error
    raise errors.PermissionDenied(path, extra=e)
PermissionDenied: Permission denied: u'/.bzr/branch-format': [Errno
13] Permission denied: u'/.bzr/branch-format'

errors:
"bzr: ERROR: Permission denied: u'/.bzr/branch-format': [Errno 13]
Permission denied: u'/.bzr/branch-format'\n"

^^^^[log from
bzrlib.tests.blackbox.test_info.TestInfo.test_info_non_existing]
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/kent/work/bzr/bzr.dev/bzrlib/tests/blackbox/test_info.py", line
39, in test_info_non_existing
    self.assertEqual(err, 'bzr: ERROR: Not a branch: %s\n' % location)
AssertionError: "bzr: ERROR: Permission denied:
u'/.bzr/branch-format': [Errno 13] Permission denied:
u'/.bzr/branch-format'\n" != 'bzr: ERROR: Not a branch:
/i/do/not/exist/\n'

- ----------------------------------------------------------------------
Ran 1 test in 0.055s

>> blackbox.test_outside_wt.TestOutsideWT.test_cwd_log
kent at ubuntu:~/work/bzr/bzr.dev$ ./bzr selftest
blackbox.test_outside_wt.TestOutsideWT.test_cwd_log
       bzr: /home/kent/work/bzr/bzr.dev/bzr
    bzrlib: /home/kent/work/bzr/bzr.dev/bzrlib

FAIL: blackbox.test_outside_wt.TestOutsideWT.test_cwd_log
    u'bzr: ERROR: Not a branch: /tmp/tmp6xh0tH/\n' != "bzr: ERROR:
Permission denied: u'/.bzr/branch-format': [Errno 13] Permission
denied: u'/.bzr/branch-format'\n"


======================================================================
FAIL: test_cwd_log (bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT)

vvvv[log from
bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT.test_cwd_log]
created control directory in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/
creating repository in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/.
creating branch <bzrlib.branch.BzrBranchFormat5 object at 0xb7aa3b6c>
in file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/
got branch format Bazaar-NG Metadir branch format 5
got branch format Bazaar-NG Metadir branch format 5
opening working tree '/home/kent/work/bzr/bzr.dev/test0000.tmp'
failed to open
/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache:
[Errno 2] No such file or directory:
u'/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache'
write hc
run bzr: ('log',)
encoding stdout as sys.stdout encoding 'UTF-8'
Traceback (most recent call last):
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 626, in
run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 588, in
run_bzr
    ret = run(*run_argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 292, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 598, in
ignore_pipe
    result = func(*args, **kwargs)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/builtins.py", line 1432, in run
    dir, relpath = bzrdir.BzrDir.open_containing(location)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 526, in
open_containing
    return BzrDir.open_containing_from_transport(get_transport(url))
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 547, in
open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 505, in
open_from_transport
    format = BzrDirFormat.find_format(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1055, in
find_format
    return format.probe_transport(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1065, in
probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/local.py", line
138, in get
    self._translate_error(e, path)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/__init__.py",
line 241, in _translate_error
    raise errors.PermissionDenied(path, extra=e)
PermissionDenied: Permission denied: u'/.bzr/branch-format': [Errno
13] Permission denied: u'/.bzr/branch-format'

errors:
"bzr: ERROR: Permission denied: u'/.bzr/branch-format': [Errno 13]
Permission denied: u'/.bzr/branch-format'\n"

^^^^[log from
bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT.test_cwd_log]
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/kent/work/bzr/bzr.dev/bzrlib/tests/blackbox/test_outside_wt.py",
line 36, in test_cwd_log
    err)
AssertionError: u'bzr: ERROR: Not a branch: /tmp/tmp6xh0tH/\n' !=
"bzr: ERROR: Permission denied: u'/.bzr/branch-format': [Errno 13]
Permission denied: u'/.bzr/branch-format'\n"

- ----------------------------------------------------------------------
Ran 1 test in 0.059s

>> blackbox.test_outside_wt.TestOutsideWT.test_diff_ouside_tree
>>
kent at ubuntu:~/work/bzr/bzr.dev$ ./bzr selftest
blackbox.test_outside_wt.TestOutsideWT.test_diff_ouside_tree
       bzr: /home/kent/work/bzr/bzr.dev/bzr
    bzrlib: /home/kent/work/bzr/bzr.dev/bzrlib

FAIL: blackbox.test_outside_wt.TestOutsideWT.test_diff_ouside_tree
    0 != 3


======================================================================
FAIL: test_diff_ouside_tree
(bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT)

vvvv[log from
bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT.test_diff_ouside_tree]
created control directory in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/
creating repository in
file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/.
creating branch <bzrlib.branch.BzrBranchFormat5 object at 0xb7a8fb6c>
in file:///home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/
got branch format Bazaar-NG Metadir branch format 5
got branch format Bazaar-NG Metadir branch format 5
opening working tree '/home/kent/work/bzr/bzr.dev/test0000.tmp'
failed to open
/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache:
[Errno 2] No such file or directory:
u'/home/kent/work/bzr/bzr.dev/test0000.tmp/.bzr/checkout/stat-cache'
write hc
run bzr: ['init', 'branch1']
encoding stdout as sys.stdout encoding 'UTF-8'
created control directory in file:///tmp/tmpJqCy3x/branch1/
Traceback (most recent call last):
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 626, in
run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 588, in
run_bzr
    ret = run(*run_argv)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/commands.py", line 292, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/builtins.py", line 1127, in run
    bzrdir.BzrDir.create_branch_convenience(location, format=format)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 296, in
create_branch_convenience
    repo = bzrdir._find_or_create_repository(force_new_repo)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 257, in
_find_or_create_repository
    return self.find_repository()
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 380, in
find_repository
    found_bzrdir = BzrDir.open_containing_from_transport(
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 547, in
open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 505, in
open_from_transport
    format = BzrDirFormat.find_format(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1055, in
find_format
    return format.probe_transport(transport)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/bzrdir.py", line 1065, in
probe_transport
    format_string = transport.get(".bzr/branch-format").read()
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/local.py", line
138, in get
    self._translate_error(e, path)
  File "/home/kent/work/bzr/bzr.dev/bzrlib/transport/__init__.py",
line 241, in _translate_error
    raise errors.PermissionDenied(path, extra=e)
PermissionDenied: Permission denied: u'/.bzr/branch-format': [Errno
13] Permission denied: u'/.bzr/branch-format'

errors:
"bzr: ERROR: Permission denied: u'/.bzr/branch-format': [Errno 13]
Permission denied: u'/.bzr/branch-format'\n"

^^^^[log from
bzrlib.tests.blackbox.test_outside_wt.TestOutsideWT.test_diff_ouside_tree]
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/kent/work/bzr/bzr.dev/bzrlib/tests/blackbox/test_outside_wt.py",
line 47, in test_diff_ouside_tree
    self.run_bzr_captured(['init', 'branch1'])
  File "/home/kent/work/bzr/bzr.dev/bzrlib/tests/__init__.py", line
946, in run_bzr_captured
    self.assertEquals(retcode, result)
AssertionError: 0 != 3

- ----------------------------------------------------------------------
Ran 1 test in 0.068s


>
>
> Can you provide tracebacks for the tests that are failing so we can
> make sure they are fixed?
Done.

Cheers,
Kent.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFegUFgoxTFTi1P8QRAjJ0AKCzcj5l3NPFJCLGzdhFULtNrbFmlACgnH05
+d9msbpbGwa61sUrU3fMygA=
=V2nd
-----END PGP SIGNATURE-----




More information about the bazaar mailing list