mercurial/hg.py
changeset 292 09364bcebdf0
parent 291 2c4f2be05587
child 296 a3d83bf86755
child 297 0dbcf3c9ff20
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -279,7 +279,9 @@ def opener(base):
 
         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: