Rev 3962: Don't outsmart original author ! in file:///net/bigmamac/Volumes/home/vila/src/bzr/bugs/314525-annotate-show-ids/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Jan 27 17:32:36 GMT 2009


At file:///net/bigmamac/Volumes/home/vila/src/bzr/bugs/314525-annotate-show-ids/

------------------------------------------------------------
revno: 3962
revision-id: v.ladeuil+lp at free.fr-20090127173234-ksrb3hxbpdo8traf
parent: v.ladeuil+lp at free.fr-20090127103538-ogm13br9j6j98qzg
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 314525-annotate-show-ids
timestamp: Tue 2009-01-27 18:32:34 +0100
message:
  Don't outsmart original author !
  
  * bzrlib/annotate.py:
  (_show_id_annotations): Revert to Anne's way since jam agrees with
  her :)
-------------- next part --------------
=== modified file 'bzrlib/annotate.py'
--- a/bzrlib/annotate.py	2009-01-27 10:35:38 +0000
+++ b/bzrlib/annotate.py	2009-01-27 17:32:34 +0000
@@ -151,15 +151,16 @@
 
 
 def _show_id_annotations(annotations, to_file, full):
-    if annotations:
-        last_rev_id = None
-        max_origin_len = max(len(origin) for origin, text in annotations)
-        for origin, text in annotations:
-            if full or last_rev_id != origin:
-                this = origin
-            else:
-                this = ''
-            to_file.write('%*s | %s' % (max_origin_len, this, text))
+    if not annotations:
+        return
+    last_rev_id = None
+    max_origin_len = max(len(origin) for origin, text in annotations)
+    for origin, text in annotations:
+        if full or last_rev_id != origin:
+            this = origin
+        else:
+            this = ''
+        to_file.write('%*s | %s' % (max_origin_len, this, text))
             last_rev_id = origin
     return
 



More information about the bazaar-commits mailing list