[Pkg-bazaar-commits] ./bzr/unstable r383: - Show file ids too for log --show-ids

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:52:07 UTC 2009


------------------------------------------------------------
revno: 383
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-05-05 19:57:17 +1000
message:
  - Show file ids too for log --show-ids
modified:
  bzrlib/log.py
-------------- next part --------------
=== modified file 'bzrlib/log.py'
--- a/bzrlib/log.py	2005-05-05 09:26:27 +0000
+++ b/bzrlib/log.py	2005-05-05 09:57:17 +0000
@@ -147,19 +147,31 @@
             if delta.removed:
                 print >>to_file, 'removed files:'
                 for path, fid in delta.removed:
-                    print >>to_file, '  ' + path
+                    if show_ids:
+                        print >>to_file, '  %-30s %s' % (path, fid)
+                    else:
+                        print >>to_file, ' ', path
             if delta.added:
                 print >>to_file, 'added files:'
                 for path, fid in delta.added:
-                    print >>to_file, '  ' + path
+                    if show_ids:
+                        print >>to_file, '  %-30s %s' % (path, fid)
+                    else:
+                        print >>to_file, '  ' + path
             if delta.renamed:
                 print >>to_file, 'renamed files:'
                 for oldpath, newpath, fid in delta.renamed:
-                    print >>to_file, '  %s => %s' % (oldpath, newpath)
+                    if show_ids:
+                        print >>to_file, '  %s => %s %s' % (oldpath, newpath, fid)
+                    else:
+                        print >>to_file, '  %s => %s' % (oldpath, newpath)
             if delta.modified:
                 print >>to_file, 'modified files:'
                 for path, fid in delta.modified:
-                    print >>to_file, '  ' + path
+                    if show_ids:
+                        print >>to_file, '  %-30s %s' % (path, fid)
+                    else:
+                        print >>to_file, '  ' + path
 
             prev_inv = this_inv
 



More information about the Pkg-bazaar-commits mailing list