qinfo fails on a shared repository

Bug #385105 reported by Ian Clatworthy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Low
Ian Clatworthy

Bug Description

'bzr info' works fine on a shared repository. Here's the output:

ian@wallaby:~/Projects/bzr/qbzr$ bzr info
Shared repository with trees (format: 1.14 or 1.9)
Location:
  shared repository: .

'bzr qinfo' falls over and shouldn't. Here's the exception:

ian@wallaby:~/Projects/bzr/qbzr$ bzr qinfo -Derror
bzr: ERROR: bzrlib.errors.NoWorkingTree: No WorkingTree exists for "file:///home/ian/Projects/bzr/qbzr/.bzr/checkout/".

Traceback (most recent call last):
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/ian/.bazaar/plugins/qbzr/lib/commands.py", line 129, in run
    return unbound(self, *args, **kwargs)
  File "/home/ian/.bazaar/plugins/qbzr/lib/commands.py", line 116, in run
    return unbound(self, *args, **kwargs)
  File "/home/ian/.bazaar/plugins/qbzr/lib/commands.py", line 150, in run
    return self._qbzr_run(*args, **kwargs)
  File "/home/ian/.bazaar/plugins/qbzr/lib/commands.py", line 626, in _qbzr_run
    tree, relpath = WorkingTree.open_containing('.')
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/workingtree.py", line 345, in open_containing
    return control.open_workingtree(), relpath
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/bzrdir.py", line 1726, in open_workingtree
    format = WorkingTreeFormat.find_format(self)
  File "/home/ian/Projects/bzr/core/trunk/bzrlib/workingtree.py", line 2722, in find_format
    raise errors.NoWorkingTree(base=transport.base)
NoWorkingTree: No WorkingTree exists for "file:///home/ian/Projects/bzr/qbzr/.bzr/checkout/".

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

This is using the bzr r4416 and qbzr 0.11dev. OS is Ubuntu (though that doesn't matter here).

Revision history for this message
Alexander Belchenko (bialix) wrote :

This dialog is branch oriented. I'm not sure what user expects to see there for shared repo. Do you have an idea?

Changed in qbzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 385105] Re: qinfo fails on a shared repository

Alexander Belchenko wrote:
> This dialog is branch oriented. I'm not sure what user expects to see
> there for shared repo. Do you have an idea?
>
>
I'd suggest this: a Location field displaying the path/URL. Below that,
2 tabs:

1. Flags
2. Format.

The only flag so far is "Create working tree for new branches". Format
has 2 fields: Control and Repository. (See the output from "bzr info -v"
on a shared repository.)

Ian C.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

It now also works on no-tree branches.

Changed in qbzr:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
milestone: none → 0.14
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.