Rev 4386: Allow --max-combinations=0 to run everything. in http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

John Arbash Meinel john at arbash-meinel.com
Tue Jun 9 01:30:51 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

------------------------------------------------------------
revno: 4386
revision-id: john at arbash-meinel.com-20090609003046-kg75mbqk000u0475
parent: john at arbash-meinel.com-20090608220434-mlcwz86kl038jkac
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.16-better_heads
timestamp: Mon 2009-06-08 19:30:46 -0500
message:
  Allow --max-combinations=0 to run everything.
-------------- next part --------------
=== modified file 'tools/time_graph.py'
--- a/tools/time_graph.py	2009-06-08 21:42:33 +0000
+++ b/tools/time_graph.py	2009-06-09 00:30:46 +0000
@@ -52,7 +52,7 @@
 for revision_id, parent_ids in parent_map.iteritems():
     if parent_ids is not None and len(parent_ids) > 1:
         combinations.append(parent_ids)
-if len(combinations) > opts.max_combinations:
+if opts.max_combinations > 0 and len(combinations) > opts.max_combinations:
     combinations = random.sample(combinations, opts.max_combinations)
 
 print '      %d combinations' % (len(combinations),)



More information about the bazaar-commits mailing list