/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Ian Clatworthy
  • Date: 2007-07-30 01:55:44 UTC
  • mto: (2658.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2659.
  • Revision ID: ian.clatworthy@internode.on.net-20070730015544-7g5r7kbv1nejica3
Put all format detection stuff in one spot as requested by John Arbash Meinel

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
    if filename is None:
554
554
        stats.pprint()
555
555
    else:
556
 
        if filename.startswith("callgrind.out"):
557
 
            fmt = "callgrind"
558
 
        else:
559
 
            # Get from extension
560
 
            fmt = None
561
 
        stats.save(filename, fmt)
 
556
        stats.save(filename)
562
557
        trace.note('Profile data written to "%s".', filename)
563
558
    return ret
564
559