[Pkg-bazaar-commits] ./bzr/unstable r242: Fix opening of ~/.bzr.log on Windows

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:43:57 UTC 2009


------------------------------------------------------------
revno: 242
committer: mbp at sourcefrog.net
timestamp: Tue 2005-04-12 16:27:32 +1000
message:
  Fix opening of ~/.bzr.log on Windows
modified:
  NEWS
  bzrlib/trace.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-04-11 02:53:57 +0000
+++ b/NEWS	2005-04-12 06:27:32 +0000
@@ -5,6 +5,8 @@
     * bzr diff optionally takes a list of files to diff.  Still a bit
       basic.  Patch from QuantumG.
 
+    * More default ignore patterns.
+
 
   BUG FIXES: 
 
@@ -22,6 +24,11 @@
       directory and delete it when done.
 
 
+  PORTABILITY:
+
+    * Fix opening of ~/.bzr.log on Windows.  Patch from Andrew Bennetts.
+
+
 bzr-0.0.3  2005-04-06
 
   ENHANCEMENTS:

=== modified file 'bzrlib/trace.py'
--- a/bzrlib/trace.py	2005-04-06 14:06:32 +0000
+++ b/bzrlib/trace.py	2005-04-12 06:27:32 +0000
@@ -85,8 +85,8 @@
 
     _starttime = os.times()[4]
 
-    # XXX: Is HOME always set on Windows?
-    trace_fname = os.path.join(os.environ['HOME'], '.bzr.log')
+    # XXX:  Does this always work on Windows?
+    trace_fname = os.path.join(os.path.expanduser('~/.bzr.log'))
     _tracefile = codecs.open(trace_fname, 'at', 'utf8')
     t = _tracefile
 



More information about the Pkg-bazaar-commits mailing list