Not aware new revisions in parent branch
Bug #513936 reported by
Andrew Starr-Bochicchio
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
Changed in groundcontrol: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Martin Owens (doctormo) |
milestone: | none → 1.2 |
Changed in groundcontrol: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's te basic idea:
import os plugins. launchpad
import bzrlib.
from bzrlib.branch import Branch
from bzrlib.missing import find_unmerged
tree = os.getcwd() local, lp)
local = Branch.open(tree)
lp = Branch.open('lp:foo')
find_unmerged(