changeset 292:09364bcebdf0

Make most file opening binary -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Make most file opening binary This should make Windows happier manifest hash: 4a906f7c55d8af4e962385c645852d0b3d858b42 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCp52mywK+sNU5EO8RAtOzAJwK8MOtl3B0MDAXyJDnDFt9mHNINwCfVdRG 8z35hXvIJhz3sRo0ogdUZ0s= =eM45 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Wed, 08 Jun 2005 17:38:46 -0800
parents 2c4f2be05587
children 11d64332a1cb
files mercurial/hg.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Jun 08 17:26:09 2005 -0800
+++ b/mercurial/hg.py	Wed Jun 08 17:38:46 2005 -0800
@@ -279,7 +279,9 @@
 
         f = os.path.join(p, path)
 
-        if mode != "r":
+        mode += "b" # for that other OS
+
+        if mode[0] != "r":
             try:
                 s = os.stat(f)
             except OSError: