Rev 3554: Do not scan history for tags when none are present. in http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

Robert Collins robertc at robertcollins.net
Fri Jul 18 12:27:44 BST 2008


At http://people.ubuntu.com/~robertc/baz2.0/misc-fixen

------------------------------------------------------------
revno: 3554
revision-id: robertc at robertcollins.net-20080718112738-ayyj205j3lo2nve1
parent: pqm at pqm.ubuntu.com-20080717073312-reglpowwyo671081
committer: Robert Collins <robertc at robertcollins.net>
branch nick: misc-fixen
timestamp: Fri 2008-07-18 21:27:38 +1000
message:
  Do not scan history for tags when none are present.
modified:
  bzrlib/builtins.py             builtins.py-20050830033751-fc01482b9ca23183
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py	2008-07-17 05:51:29 +0000
+++ b/bzrlib/builtins.py	2008-07-18 11:27:38 +0000
@@ -4344,6 +4344,8 @@
             ):
         branch, relpath = Branch.open_containing(directory)
         tags = branch.tags.get_tag_dict().items()
+        if not tags:
+            return
         if sort == 'alpha':
             tags.sort()
         elif sort == 'time':




More information about the bazaar-commits mailing list