mercurial/commands.py
changeset 14168 135e244776f0
parent 14164 cb98fed52495
child 14188 9029b1a38c30
--- a/mercurial/commands.py	Mon May 02 10:11:05 2011 +0200
+++ b/mercurial/commands.py	Mon May 02 10:11:18 2011 +0200
@@ -1129,7 +1129,7 @@
 
 def debugfsinfo(ui, path = "."):
     """show information detected about current filesystem"""
-    open('.debugfsinfo', 'w').write('')
+    util.writefile('.debugfsinfo', '')
     ui.write('exec: %s\n' % (util.checkexec(path) and 'yes' or 'no'))
     ui.write('symlink: %s\n' % (util.checklink(path) and 'yes' or 'no'))
     ui.write('case-sensitive: %s\n' % (util.checkcase('.debugfsinfo')
@@ -2669,7 +2669,7 @@
                 raise util.Abort(_('no diffs found'))
 
         if msgs:
-            repo.opener('last-message.txt', 'wb').write('\n* * *\n'.join(msgs))
+            repo.opener.write('last-message.txt', '\n* * *\n'.join(msgs))
     finally:
         release(lock, wlock)