Comment 5 for bug 98516

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

There still is no warning whatsoever from bzr serve that the directory it's serving can't, in fact, be served:

Term 1
 $ bzr init-repo bzr
Shared repository with trees (format: 2a)
Location:
  shared repository: bzr
 $ cd bzr
 $ bzr init trunk
Created a repository tree (format: 2a)
Using shared repository: /bzr/
 $ cd trunk
 $ cat > foo
lorem ipsum
^C
 $ bzr add
bzr adding foo
 $ bzr ci -m 'A commit'
Committing to:/bzr/trunk/
added foo
Committed revision 1.
 $ cd ..
 $ bzr branch trunk some_branch
Branched 1 revision(s).
 $ bzr serve # note: no error
listening on port: 4155

Term 2:
 $ bzr info bzr://localhost
Shared repository with trees (format: unnamed)
Location:
  shared repository: bzr://localhost/
 $ bzr info bzr://localhost/some_branch
Repository branch (format: unnamed)
Location:
  shared repository: bzr://localhost/
  repository branch: bzr://localhost/some_branch/

Related branches:
  parent branch: bzr://localhost/trunk/

Term 1:
 $ cd trunk # now in repo/trunk
 $ bzr serve # note: no warning or error whatsoever
listening on port: 4155

Term 2: $ bzr info bzr://localhost
bzr: ERROR: Server sent an unexpected error: ('error', 'No repository present: "chroot-4321283472:///"')