--- a/mercurial/windows.py Fri Jul 24 00:40:00 2009 +0200
+++ b/mercurial/windows.py Sun Jul 26 17:25:08 2009 +0200
@@ -126,6 +126,15 @@
def normpath(path):
return pconvert(os.path.normpath(path))
+def realpath(path):
+ '''
+ Returns the true, canonical file system path equivalent to the given
+ path.
+ '''
+ # TODO: There may be a more clever way to do this that also handles other,
+ # less common file systems.
+ return os.path.normpath(os.path.normcase(os.path.realpath(path)))
+
def samestat(s1, s2):
return False