~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Aaron Bentley
  • Date: 2005-08-26 16:32:50 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: abentley@panoramicfeedback.com-20050826163250-37eddf064f71ed0f
Status command shows pending merges

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
def show_status(branch, show_unchanged=False,
20
20
                specific_files=None,
21
21
                show_ids=False,
22
 
                to_file=None):
 
22
                to_file=None,
 
23
                show_pending=True):
23
24
    """Display single-line status for non-ignored working files.
24
25
 
25
26
    show_all
62
63
                print >>to_file, 'unknown:'
63
64
                done_header = True
64
65
            print >>to_file, ' ', path
 
66
        if show_pending and len(branch.pending_merges()) > 0:
 
67
            print >>to_file, 'pending merges:'
 
68
            for merge in branch.pending_merges():
 
69
                print >> to_file, ' ', merge
65
70
    finally:
66
71
        branch.unlock()
67
72