/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/trace.py

  • Committer: John Arbash Meinel
  • Date: 2008-03-14 10:55:37 UTC
  • mfrom: (3275 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3281.
  • Revision ID: john@arbash-meinel.com-20080314105537-v9h2ue0uxvs1dyn6
[merge] bzr.dev 3275

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
 
188
188
 
189
189
def _get_bzr_log_filename():
190
 
    # TODO: should this be overridden by $BZR_HOME?
191
 
    if sys.platform == 'win32':
192
 
        from bzrlib import win32utils
193
 
        home = win32utils.get_home_location()
194
 
    else:
195
 
        home = os.path.expanduser('~')
 
190
    bzr_log = os.environ.get('BZR_LOG')
 
191
    if bzr_log:
 
192
        return bzr_log
 
193
    home = os.environ.get('BZR_HOME')
 
194
    if home is None:
 
195
        if sys.platform == 'win32':
 
196
            from bzrlib import win32utils
 
197
            home = win32utils.get_home_location()
 
198
        else:
 
199
            home = os.path.expanduser('~')
196
200
    return os.path.join(home, '.bzr.log')
197
201
 
198
202