diff mercurial/util.py @ 6836:c016dc1a8e91

merge with -stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 23 Jul 2008 16:14:45 +0200
parents f67d1468ac50 08d9e0f974d9
children 01db3e101362
line wrap: on
line diff
--- a/mercurial/util.py	Tue Jul 22 13:03:31 2008 -0500
+++ b/mercurial/util.py	Wed Jul 23 16:14:45 2008 +0200
@@ -1500,7 +1500,7 @@
             mode += "b" # for that other OS
 
         nlink = -1
-        if mode[0] != "r":
+        if mode not in ("r", "rb"):
             try:
                 nlink = nlinks(f)
             except OSError: