~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-28 23:48:50 UTC
  • mfrom: (3193.3.3 st.short)
  • Revision ID: pqm@pqm.ubuntu.com-20080128234850-jaxf44mvz2q8m2v5
(bialix) List possible values for BZR_SSH environment variable in
 env-variables help topic. (#181842)

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        ignore.add(merge)
169
169
        try:
170
170
            from bzrlib.osutils import terminal_width
171
 
            width = terminal_width()
 
171
            width = terminal_width() - 1    # we need one extra space to avoid
 
172
                                            # extra blank lines
172
173
            m_revision = branch.repository.get_revision(merge)
173
174
            if short:
174
 
                prefix = 'P  '
 
175
                prefix = 'P   '
175
176
            else:
176
 
                prefix = ' '
177
 
            to_file.write(prefix + ' ' + line_log(m_revision, width - 4))
 
177
                prefix = '  '
 
178
            to_file.write(prefix)
 
179
            to_file.write(line_log(m_revision, width - len(prefix)))
178
180
            to_file.write('\n')
179
181
            inner_merges = branch.repository.get_ancestry(merge)
180
182
            assert inner_merges[0] is None
185
187
                    continue
186
188
                mm_revision = branch.repository.get_revision(mmerge)
187
189
                if short:
188
 
                    prefix = 'P.  '
 
190
                    prefix = 'P.   '
189
191
                else:
190
 
                    prefix = '   '
191
 
                to_file.write(prefix + ' ' + line_log(mm_revision, width - 5))
 
192
                    prefix = '    '
 
193
                to_file.write(prefix)
 
194
                to_file.write(line_log(mm_revision, width - len(prefix)))
192
195
                to_file.write('\n')
193
196
                ignore.add(mmerge)
194
197
        except errors.NoSuchRevision: