Changeset 9592a5ea3c41…
Parent 5544f6e12df4…
by
Changes to one file · Browse files at 9592a5ea3c41 Showing diff from parent 5544f6e12df4 Diff from another changeset...
@@ -457,7 +457,12 @@ count += 1
if not matchfn(wfile):
continue
- data = ctx[wfile].data() # load file data
+ try:
+ data = ctx[wfile].data() # load file data
+ except EnvironmentError:
+ self.showMessage.emit(_('Skipping %s, unable to read') %
+ hglib.tounicode(wfile))
+ continue
if util.binary(data):
continue
for i, line in enumerate(data.splitlines()):
|
Loading...