Should tell me what command to run to 'download it' (bzr pull)

Bug #240515 reported by Olav Vitters
12
Affects Status Importance Assigned to Milestone
loggerhead
Fix Released
Undecided
Jonathan Lange

Bug Description

It would be great if Loggerhead would help the user to download the code.

It should try to avoid to be complicated. Basically, only tell how to download the latest changes in some branch/trunk.

E.g. tell the user to:
 bzr pull $URL

Please avoid options like revision, even if the user is looking at some specific revision within that branch. As a start, just show above command suggestion in the files view when either the '/' is shown (http://bzr-mirror.gnome.org:9876/mango/trunk/files), or in some directory. Thereby not giving any advice when the user is looking at some specific revision (IMO such advice would be too confusing).

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

bzr itself already remembers URL's. So once someone has the code they won't need the hint :). However, I think you mean 'tell someone who does not have the code how to get it'. I think that that is a good idea. This just needs loggerhead to know the public_branch of each branch - and bzr already has the configuration glue to set that as a default policy

e.g.
[file:///srv/bzr/gnome]
public_branch = http://bzr-mirror.gnome.org
public_branch:policy = appendpath

set in ~/.bazaar/locations.conf
would allow loggerhead to call 'branch.get_config().public_branch()' (or something like that - just sketching) and thus know the url to present to users.

I would recommend starting with 'bzr branch' as the command shown, simply because that is the mode of operation most users will need most of the time.

Changed in loggerhead:
status: New → Confirmed
Martin Albisetti (beuno)
Changed in loggerhead:
assignee: nobody → jml
status: Confirmed → Fix Committed
Martin Albisetti (beuno)
Changed in loggerhead:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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