~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/rocketfuel-mp-status

  • Committer: Curtis Hovey
  • Date: 2011-08-21 14:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13745.
  • Revision ID: curtis.hovey@canonical.com-20110821142106-x93hajd6iguma8gx
Update test that was enforcing bad grammar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    if lb == trunk:
23
23
        continue
24
24
    try:
25
 
        _branch = branch.Branch.open(lb)
 
25
        _branch  = branch.Branch.open(lb)
26
26
    except errors.NotBranchError:
27
27
        continue
28
28
    print ' * %s' % lb
32
32
    except errors.NotBranchError:
33
33
        print '   - Remote branch does not exist'
34
34
        continue
35
 
    if _branch.revno() == rem_branch.revno():
 
35
    if _branch.revno() != rem_branch.revno():
 
36
        print '   - Remote branch is missing revisions'
 
37
    else:
36
38
        print '   - Remote branch is up to date'
37
 
    elif _branch.revno() > rem_branch.revno():
38
 
        print '   - Remote branch is missing revisions'
39
 
    elif _branch.revno() < rem_branch.revno():
40
 
        print '   - Local branch is missing revisions'
41
39
    remote = lp_branches.getByUrl(url = rem_branch_url)
42
40
    mps = remote.landing_targets
43
41
    for mp in mps: