merge with crew.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Wed, 03 May 2006 22:47:57 -0700
changeset 2194 ee90e5a9197f
parent 2192 2be3ac7abc21 (current diff)
parent 2193 fb28ce04b349 (diff)
child 2196 2a5d8af8eecc
merge with crew.
--- a/mercurial/util.py	Wed May 03 14:40:39 2006 -0700
+++ b/mercurial/util.py	Wed May 03 22:47:57 2006 -0700
@@ -231,7 +231,7 @@
                 name_st = os.stat(name)
             except OSError:
                 break
-            if os.path.samestat(name_st, root_st):
+            if samestat(name_st, root_st):
                 rel.reverse()
                 name = os.path.join(*rel)
                 audit_path(name)
@@ -561,6 +561,9 @@
     makelock = _makelock_file
     readlock = _readlock_file
 
+    def samestat(s1, s2):
+        return False
+
     def explain_exit(code):
         return _("exited with status %d") % code, code
 
@@ -627,6 +630,7 @@
         return path
 
     normpath = os.path.normpath
+    samestat = os.path.samestat
 
     def makelock(info, pathname):
         try: