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
bb570287b6e2
Commit
77f74954
authored
Dec 09, 2010
by
Steve Borho
Browse files
wctxactions: connect finished signals to deleteLater slots
parent
bda9b4944017
Changes
3
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/guess.py
View file @
bb570287
...
...
@@ -189,10 +189,10 @@ class DetectRenameDialog(QDialog):
self
.
thread
.
match
.
connect
(
self
.
rowReceived
)
self
.
thread
.
progress
.
connect
(
self
.
stbar
.
progress
)
self
.
thread
.
showMessage
.
connect
(
self
.
stbar
.
showMessage
)
self
.
thread
.
finished
.
connect
(
self
.
finished
)
self
.
thread
.
finished
.
connect
(
self
.
search
finished
)
self
.
thread
.
start
()
def
finished
(
self
):
def
search
finished
(
self
):
self
.
stbar
.
clear
()
for
col
in
xrange
(
3
):
self
.
matchtv
.
resizeColumnToContents
(
col
)
...
...
tortoisehg/hgqt/hgignore.py
View file @
bb570287
...
...
@@ -11,12 +11,12 @@ import re
from
PyQt4.QtCore
import
*
from
PyQt4.QtGui
import
*
from
mercurial
import
hg
,
ui
,
match
,
util
,
error
from
mercurial
import
match
,
util
,
error
from
tortoisehg.hgqt.i18n
import
_
from
tortoisehg.util
import
shlib
,
hglib
,
paths
from
tortoisehg.util
import
shlib
,
hglib
from
tortoisehg.hgqt
import
qtlib
,
qscilib
,
thgrepo
from
tortoisehg.hgqt
import
qtlib
,
qscilib
class
HgignoreDialog
(
QDialog
):
'Edit a repository .hgignore file'
...
...
@@ -25,16 +25,11 @@ class HgignoreDialog(QDialog):
contextmenu
=
None
def
__init__
(
self
,
parent
=
None
,
roo
t
=
None
,
*
pats
):
def
__init__
(
self
,
repo
,
paren
t
=
None
,
*
pats
):
'Initialize the Dialog'
QDialog
.
__init__
(
self
,
parent
)
self
.
setWindowFlags
(
self
.
windowFlags
()
&
~
Qt
.
WindowContextHelpButtonHint
)
try
:
repo
=
thgrepo
.
repository
(
ui
.
ui
(),
path
=
paths
.
find_root
(
root
))
except
error
.
RepoError
:
QDialog
.
reject
(
self
)
return
self
.
setWindowFlags
(
self
.
windowFlags
()
&
~
Qt
.
WindowContextHelpButtonHint
)
self
.
repo
=
repo
self
.
pats
=
pats
...
...
@@ -286,6 +281,9 @@ class HgignoreDialog(QDialog):
QDialog
.
reject
(
self
)
def
run
(
_ui
,
*
pats
,
**
opts
):
from
tortoisehg.util
import
paths
from
tortoisehg.hgqt
import
thgrepo
repo
=
thgrepo
.
repository
(
_ui
,
path
=
paths
.
find_root
())
if
pats
and
pats
[
0
].
endswith
(
'.hgignore'
):
pats
=
[]
return
HgignoreDialog
(
None
,
None
,
*
pats
)
return
HgignoreDialog
(
repo
,
None
,
*
pats
)
tortoisehg/hgqt/wctxactions.py
View file @
bb570287
...
...
@@ -265,12 +265,14 @@ def guessRename(parent, ui, repo, files):
ret
=
True
ret
=
False
dlg
.
matchAccepted
.
connect
(
matched
)
dlg
.
finished
.
connect
(
dlg
.
deleteLater
)
dlg
.
exec_
()
return
ret
def
ignore
(
parent
,
ui
,
repo
,
files
):
from
tortoisehg.hgqt.hgignore
import
HgignoreDialog
dlg
=
HgignoreDialog
(
parent
,
repo
.
root
,
*
files
)
dlg
=
HgignoreDialog
(
repo
,
parent
,
*
files
)
dlg
.
finished
.
connect
(
dlg
.
deleteLater
)
return
dlg
.
exec_
()
==
QDialog
.
Accepted
def
remove
(
parent
,
ui
,
repo
,
files
):
...
...
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