Commit 7c23d0bf authored by Steve Borho's avatar Steve Borho
Browse files

fileview: catch util.Abort from subrepository status code

parent 29fdc4c61485
......@@ -620,8 +620,8 @@ class FileData(object):
self.flabel += _(' <i>(is a dirty sub-repository)</i>')
lbl = u' <a href="subrepo:%s">%s...</a>'
self.flabel += lbl % (hglib.tounicode(sroot), _('open'))
except error.RepoError:
self.error = _('Not an hg subrepo, not previewable')
except (error.RepoError, util.Abort), e:
self.error = _('Not a Mercurial subrepo, not previewable')
# TODO: elif check if a subdirectory (for manifest tool)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment