* give a warning on broken symlinks, otherwise err. solves #586
This commit is contained in:
+5
-1
@@ -279,7 +279,11 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
return func(f)
|
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
|
return None
|
||||||
|
|
||||||
# also handle single files
|
# also handle single files
|
||||||
|
|||||||
Reference in New Issue
Block a user