Not aware new revisions in parent branch

Bug #513936 reported by Andrew Starr-Bochicchio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ground Control
Fix Released
High
Martin Owens

Bug Description

groundcontrol doesn't seem to be aware of new revision in the parent branch that have been made since branching locally. Nor does there seem to be any way to update (ie "bzr pull").

You could check if there are revisions in the parent branch using find_unmerged from bzrlib.missing. If so, the status bar could offer to pull changes from the parent branch on launchpad if there are no local changes or merge changes from the parent branch if there are.

Taking a look at the code for bzr-explorer's repository view could probably provide an example.

Related branches

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Here's te basic idea:

import os
import bzrlib.plugins.launchpad
from bzrlib.branch import Branch
from bzrlib.missing import find_unmerged

tree = os.getcwd()
local = Branch.open(tree)
lp = Branch.open('lp:foo')
find_unmerged(local, lp)

Revision history for this message
Martin Owens (doctormo) wrote :

We need to be able to resync with the parent branch, even though nautilus flow would not allow us to do the above check against the parent branch without inuring very harsh browsing penalties.

Changed in groundcontrol:
status: New → Confirmed
importance: Undecided → High
Martin Owens (doctormo)
Changed in groundcontrol:
status: Confirmed → Fix Committed
assignee: nobody → Martin Owens (doctormo)
milestone: none → 1.2
Martin Owens (doctormo)
Changed in groundcontrol:
status: Fix Committed → 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.