* give a warning on broken symlinks, otherwise err. solves #586

This commit is contained in:
Eray Özkural
2005-10-24 13:27:53 +00:00
parent 6abfdb1948
commit 4811457c0f
+5 -1
View File
@@ -279,7 +279,11 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
try:
return func(f)
except FileError:
except FileError, e:
if os.path.issymlink(f):
ctx.ui.warning(_('Ignoring "external" link %s') % f)
else:
raise e
return None
# also handle single files