Not able to hide branches with 1.17

Asked by jrenbaum on 2009-08-28

I am running loggerhead 1.17 and tried to configure it to hide a branch. The README files simply states the following:

USING A CONFIG FILE
-------------------

To hide branches from being displayed, add to ``~/.bazaar/locations.conf``,
under the branch's section:

    [/path/to/branch]
    http_serve = False

I am currently running loggerhead as root and everything is working fine including the search plugin which seems to require indexing by root anyway. I added the piece of code listed above to root's ~/.bazaar/locations.conf file substituting the actual path/to/branch and restarted loggerhead. Unfortunately, the branch is still visible.

What am I doing wrong? I am not sure what it means to add the code "under the branch's section" if this is something other than the text substitution I already did.

Thanks for your help.

Jay

Question information

Language:
English Edit question
Status:
Answered
For:
loggerhead Edit question
Assignee:
No assignee Edit question
Last query:
2009-09-09
Last reply:
2009-09-09

It's a bit hard to divine what might be going wrong, certainly it sounds like you're trying the right thing.

Can you try this from the python command line:

>>> from bzrlib import branch
>>> b = branch.Branch.open('<your branch path here>')
>>> b.get_config().get_user_option('http_serve')
<tell me what it says here>

If it returns 'false', then there's some problem in loggerhead. If it doesn't say anything, then your config isn't quite right.

jrenbaum (jrenbaum) said : #2

Michael,

Here is the output:

root@bazaar-test:~# python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib import branch
>>> b = branch.Branch.open('/var/new_bzr_repos/client/mrua/trunk')
>>> b.get_config().get_user_option('http_serve')
u'False'

If there are any additional debug information I can help you with let me know.

Thanks,

Jay

jrenbaum (jrenbaum) said : #3

Michael,

Is there a verbose mode that I can run loggerhead in that may provide additional information to help you determine what is causing loggerhead to not hide branches?

Jay

Oops, many apologies for letting this go unanswered for so long!

Unfortunately I can't see why your branch would still be being shown :( There isn't a verbose mode to loggerhead that will help here, although hacking the source to print more information in this case should be pretty easy if you know Python (search for 'http_serve' basically).

Sorry for not being much help, I'm a bit confused too!

Can you help with this problem?

Provide an answer of your own, or ask jrenbaum for more information if necessary.

To post a message you must log in.