~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: Martin Pool
  • Date: 2005-05-05 09:57:17 UTC
  • Revision ID: mbp@sourcefrog.net-20050505095717-d67cecd52a717a96
- Show file ids too for log --show-ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
            if delta.removed:
148
148
                print >>to_file, 'removed files:'
149
149
                for path, fid in delta.removed:
150
 
                    print >>to_file, '  ' + path
 
150
                    if show_ids:
 
151
                        print >>to_file, '  %-30s %s' % (path, fid)
 
152
                    else:
 
153
                        print >>to_file, ' ', path
151
154
            if delta.added:
152
155
                print >>to_file, 'added files:'
153
156
                for path, fid in delta.added:
154
 
                    print >>to_file, '  ' + path
 
157
                    if show_ids:
 
158
                        print >>to_file, '  %-30s %s' % (path, fid)
 
159
                    else:
 
160
                        print >>to_file, '  ' + path
155
161
            if delta.renamed:
156
162
                print >>to_file, 'renamed files:'
157
163
                for oldpath, newpath, fid in delta.renamed:
158
 
                    print >>to_file, '  %s => %s' % (oldpath, newpath)
 
164
                    if show_ids:
 
165
                        print >>to_file, '  %s => %s %s' % (oldpath, newpath, fid)
 
166
                    else:
 
167
                        print >>to_file, '  %s => %s' % (oldpath, newpath)
159
168
            if delta.modified:
160
169
                print >>to_file, 'modified files:'
161
170
                for path, fid in delta.modified:
162
 
                    print >>to_file, '  ' + path
 
171
                    if show_ids:
 
172
                        print >>to_file, '  %-30s %s' % (path, fid)
 
173
                    else:
 
174
                        print >>to_file, '  ' + path
163
175
 
164
176
            prev_inv = this_inv
165
177