~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/rocketfuel-mp-status

  • Committer: Steve Kowalik
  • Date: 2011-08-21 08:46:41 UTC
  • mto: This revision was merged to the branch mainline in revision 13748.
  • Revision ID: stevenk@ubuntu.com-20110821084641-wvtdiyksu3hbzen0
Improve freshness messages and fix one bit of lint.

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 up to date'
 
37
    elif _branch.revno() > rem_branch.revno():
36
38
        print '   - Remote branch is missing revisions'
37
 
    else:
38
 
        print '   - Remote branch is up to date'
 
39
    elif _branch.revno() < rem_branch.revno():
 
40
        print '   - Local branch is missing revisions'
39
41
    remote = lp_branches.getByUrl(url = rem_branch_url)
40
42
    mps = remote.landing_targets
41
43
    for mp in mps: