mercurial/scmutil.py
changeset 15797 c7a8164c61ab
parent 15735 5b384b7f48d5
child 15993 0b05e0bfdc1c
--- a/mercurial/scmutil.py	Sun Jan 08 14:33:10 2012 +0100
+++ b/mercurial/scmutil.py	Sun Jan 08 15:23:26 2012 +0100
@@ -313,8 +313,8 @@
             try:
                 name_st = os.stat(name)
             except OSError:
-                break
-            if util.samestat(name_st, root_st):
+                name_st = None
+            if name_st and util.samestat(name_st, root_st):
                 if not rel:
                     # name was actually the same as root (maybe a symlink)
                     return ''