Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
1f5c864dd800
Commit
ab94db6a
authored
Jan 02, 2011
by
Steve Borho
Browse files
fileview: use more reliable isinstance() to detect patch contexts
parent
3e6a45cfc595
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/fileview.py
View file @
1f5c864d
...
...
@@ -28,7 +28,7 @@ from PyQt4.QtCore import *
from
PyQt4.QtGui
import
*
from
PyQt4
import
Qsci
from
tortoisehg.util
import
hglib
from
tortoisehg.util
import
hglib
,
patchctx
from
tortoisehg.hgqt.i18n
import
_
from
tortoisehg.hgqt.lexers
import
get_lexer
,
get_diff_lexer
...
...
@@ -572,7 +572,7 @@ class FileData(object):
repo
=
ctx
.
_repo
self
.
flabel
+=
u
'<b>%s</b>'
%
hglib
.
tounicode
(
wfile
)
if
type
(
ctx
.
rev
())
==
str
:
# unapplied patch
if
isinstance
(
ctx
,
patchctx
.
patchctx
):
self
.
diff
=
ctx
.
thgmqpatchdata
(
wfile
)
flags
=
ctx
.
flags
(
wfile
)
if
flags
in
(
'x'
,
'-'
):
...
...
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