Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
mercurial
TortoiseHg
thg
Commits
8d4381a39485
Commit
d8f4ef25
authored
Sep 15, 2020
by
Yuya Nishihara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typing: adjust place of type comments for multi-line statements
Maybe some logic changed in pytype? --HG-- branch : stable
parent
f6411338db3b
Pipeline
#10342
passed with stage
in 6 minutes and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
tortoisehg/hgqt/filedialogs.py
tortoisehg/hgqt/filedialogs.py
+1
-4
tortoisehg/hgqt/guess.py
tortoisehg/hgqt/guess.py
+4
-4
No files found.
tortoisehg/hgqt/filedialogs.py
View file @
8d4381a3
...
...
@@ -589,10 +589,7 @@ class FileDiffDialog(_AbstractFileDialog):
self
.
timer
.
timeout
.
connect
(
self
.
idle_fill_files
)
def
setupModels
(
self
):
self
.
filedata
=
{
'left'
:
[],
'right'
:
[],
}
# type: Dict[Text, List[pycompat.unicode]]
self
.
filedata
=
{
'left'
:
[],
'right'
:
[]}
# type: Dict[Text, List[pycompat.unicode]]
self
.
_invbarchanged
=
False
self
.
filerevmodel
=
repomodel
.
FileRevModel
(
self
.
_repoagent
,
self
.
filename
,
parent
=
self
)
...
...
tortoisehg/hgqt/guess.py
View file @
8d4381a3
...
...
@@ -240,12 +240,12 @@ class DetectRenameDialog(QDialog):
return
# TODO: better to use data(role) instead
ulist
=
[
it
.
orig
for
it
in
self
.
unrevlist
.
selectedItems
()]
# pytype: disable=attribute-error
ulist
=
[
it
.
orig
# pytype: disable=attribute-error
for
it
in
self
.
unrevlist
.
selectedItems
()]
if
not
ulist
:
# When no files are selected, look for all files
ulist
=
[
self
.
unrevlist
.
item
(
n
).
orig
for
n
in
range
(
self
.
unrevlist
.
count
())]
# pytype: disable=attribute-error
ulist
=
[
self
.
unrevlist
.
item
(
n
).
orig
# pytype: disable=attribute-error
for
n
in
range
(
self
.
unrevlist
.
count
())]
if
not
ulist
:
QMessageBox
.
information
(
self
,
_
(
'No files to find'
),
...
...
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