~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-05-11 06:12:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050511061244-b0eed343857f10d3
- remove dead code for cmd_compare_trees
- compare_trees new parameter want_unchanged to avoid allocating
  strings if not needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14
14
 
15
15
 
16
 
 
17
 
# TODO: Could probably replace this with something based on Python logging
18
 
# module.
19
 
 
20
 
 
21
 
 
22
 
 
23
16
__copyright__ = "Copyright (C) 2005 Canonical Ltd."
24
17
__author__ = "Martin Pool <mbp@canonical.com>"
25
18
 
52
45
 
53
46
 
54
47
def _write_trace(msg):
55
 
    if 0:
56
 
        if _tracefile:
57
 
            _tracefile.write(_logprefix + msg + '\n')
 
48
    if _tracefile:
 
49
        _tracefile.write(_logprefix + msg + '\n')
58
50
 
59
51
 
60
52
def warning(msg):