Tagged: tip Toggle Comment Threads | Keyboard Shortcuts

  • bradcrittenden 2:32 pm on June 4, 2013 Permalink | Reply
    Tags: bazaar, , tip   

    Bazaar lightweight checkouts and charm development 

    Due to the irregular naming used for charms on Launchpad it took me a while to get lightweight checkouts to work in a manner consistent with my lp:juju-core and lp:juju-gui setup.  (Following the guidance from Tim at bazaar-usage.txt.)  For one, my repo couldn’t be named juju-gui since it was already taken, so I used juju-gui-charm.  After making the changes I thought should work I found that lbox failed with:

    error: Failed to load focus series for "charms": resource not found

    After help from Aaron I discovered the piece I was missing to make lbox work was setting parent_location in my locations.conf file.  So the two stanzas I now have are:

    [/home/bac/src]
    public_branch = bzr+ssh://bazaar.launchpad.net/~bac
    public_branch:policy = appendpath
    push_location = lp:~bac
    push_location:policy = appendpath
    
    [/home/bac/src/juju-gui-charm]
    public_branch = bzr+ssh://bazaar.launchpad.net/~bac/charms/precise/juju-gui
    public_branch:policy = appendpath
    push_location = lp:~bac/charms/precise/juju-gui
    push_location:policy = appendpath
    parent_location = lp:~juju-gui/charms/precise/juju-gui/trunk

    Hope this helps someone.

    Advertisements
     
    • bradcrittenden 3:07 pm on June 4, 2013 Permalink | Reply

      Just fixed the parent_location to point to our intermediate branch, not the official charm branch.

  • bradcrittenden 3:05 pm on May 14, 2013 Permalink | Reply
    Tags: , tip   

    bzr tip 

    Using lightweight branches (really helpful for working on Juju) I often would do the following:

    bzr switch -b my-new-branch
    ...
    bzr switch trunk
    bzr pull
    bzr switch my-new-branch
    bzr merge

    Aaron pointed out I can avoid switching to trunk to just do the pull by creating an alias like:

    bzr alias pulltrunk="pull -d :parent"

    (Though he suggested “-d :submit” my branches don’t have the submit branch as trunk so i changed as above.  YMMV.)

    So now I can just do:

    bzr pulltrunk
    bzr merge
     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel