qlog/viz: Show repo when root is also a branch

Bug #273509 reported by Alexandre Garnier
4
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Triaged
Wishlist
Unassigned
QBzr
Confirmed
Wishlist
Unassigned

Bug Description

If a shared repository is also a branch, qlog or viz on it show only branch log and not repository branches logs.

$ bzr init-repo --no-trees test
Shared repository (format: pack-0.92)
Location:
  shared repository: test

$ bzr init test
Repository tree (format: pack-0.92)
Location:
  shared repository: test
  repository branch: test

$ bzr co test test_co
$ echo "test" > test_co/file
$ bzr add test_co/file
$ bzr ci test_co/file
Committing to: test/
added file
Committed revision 1.

$ bzr branch test test/branch
Branched 1 revision(s).

$ bzr co test/branch branch_co
$ echo "branch" > branch_co/file
$ bzr ci branch_co/file
Committing to: test/branch/
modified file
Committed revision 2.

$ bzr qlog|viz test --> show only test branch log

$ bzr qlog|viz test test/branch --> show test and test/branch branches logs

It would be nice to be able to show repository log (maybe via flag --repository or anything else) and not only branch log in this case.

Tags: qlog viz
description: updated
Changed in qbzr:
importance: Undecided → Wishlist
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: log visualisation on shared repository which is a branch show only branch log

There is no such thing like "repository log". Bazaar don't put any restrictions on revisions inside shared repository, so it's possible to have several unrelated branches inside one repository, or even revisions for deleted branches. So, in general looking on graph of all revisions in shred repository is not what you want. Perhaps much better will be to automatically detect all branches inside repository (like bzrtools' branches comand does) and then show combined log for all these branches.

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

Pff. Ignore most of my last comment.

bzr qlog REPO works as expected, find all branches in the repo and shows them.

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

> It would be nice to be able to show repository log (maybe via flag --repository or anything else) and not only branch log in this case.

Perhaps it's could be done via inspecting repo.is_shared flag or something similar.

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

> If a shared repository is also a branch

BTW, it's really weird configuration. In the past I have some troubles with managing this configuration 100% correctly. Just a side note.

Revision history for this message
Alexandre Garnier (zigarn) wrote :

This configuration is just the "Nested Style (project/branch/sub-branch/)" proposed in http://bazaar-vcs.org/SharedRepositoryLayouts.

It works well for me (and for the moment).

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

Thanks for the link. OK, I've got idea of this layout. So, if it's recommended layout in bzr QBzr should support it properly.

I'm personally don't think that new command-line option with name --repository is good name for this purpose. Although I'm not native English speaker. Perhaps --all-branches will be better. Command-line options handler in bzr allows to use part of option name if it does not clash with other options, so having option --all-branches allows you to use shorter form instead, i.e. --all. Does it sounds reasonable?

Changed in qbzr:
importance: Wishlist → Low
status: New → Confirmed
Revision history for this message
Alexandre Garnier (zigarn) wrote :

Sounds good for me.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

Would one ever want to look at only the branch?

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 273509] Re: log visualisation on shared repository which is a branch show only branch log

Gary van der Merwe пишет:
> Would one ever want to look at only the branch?
>
IMO, yes.

Jelmer Vernooij (jelmer)
Changed in bzr-gtk:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: viz
summary: - log visualisation on shared repository which is a branch show only
- branch log
+ qlog/viz: Show repo when root is also a branch
Changed in qbzr:
importance: Low → Wishlist
Revision history for this message
Zunbeltz Izaola (zunbeltz) wrote :

This would be very nice for colocated branches workspaces. They are shared repos with ligthweighted checkouts.
With qlog it is possible to show all the branches with the command
bzr qlog colo:
It would be nice to have something similar with viz.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers