~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

  • Committer: Aaron Bentley
  • Date: 2005-10-29 18:40:48 UTC
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: abentley@panoramicfeedback.com-20051029184048-88c7e2e0fc56481f
Updated GPL notices

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
        m = Branch.open_containing(merge_branch)[0]
238
238
    else:
239
239
        m = None
240
 
    b.lock_read()
241
 
    try:
242
 
        if m is not None:
243
 
            m.lock_read()
244
 
        try:
245
 
            grapher = Grapher(b, m)
246
 
            relations = grapher.get_relations(collapse)
247
 
        finally:
248
 
            if m is not None:
249
 
                m.unlock()
250
 
    finally:
251
 
        b.unlock()
 
240
    grapher = Grapher(b, m)
 
241
    relations = grapher.get_relations(collapse)
252
242
 
253
243
    ext = filename.split('.')[-1]
254
244
    output = dot_output(relations, ranking)