# HG changeset patch # User Vadim Gelfer # Date 2006-05-04 05:47:57 # Node ID ee90e5a9197f21357f41a0bc12cb5c40f5b3d1fc # Parent 2be3ac7abc210595efc271c06dd261cc08c11a28 # Parent fb28ce04b349f7bef70df6c9cd761691bbf59e0a merge with crew. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -231,7 +231,7 @@ def canonpath(root, cwd, myname): 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 @@ if os.name == 'nt': 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 @@ else: return path normpath = os.path.normpath + samestat = os.path.samestat def makelock(info, pathname): try: