Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
TortoiseHg
thg-hgtk
Commits
ef3eac93e5c6
Commit
7c23d0bf
authored
Dec 12, 2010
by
Steve Borho
Browse files
fileview: catch util.Abort from subrepository status code
parent
29fdc4c61485
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/fileview.py
View file @
ef3eac93
...
...
@@ -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 a
n hg
subrepo, not previewable'
)
except
(
error
.
RepoError
,
util
.
Abort
),
e
:
self
.
error
=
_
(
'Not a
Mercurial
subrepo, not previewable'
)
return
# TODO: elif check if a subdirectory (for manifest tool)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment