Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable rename: code cleanups (unused import, redundant assignment and funcall)

Changeset 3dbcb960ae82

Parent 25818ed50c94

by Yuya Nishihara

Changes to one file · Browse files at 3dbcb960ae82 Showing diff from parent 25818ed50c94 Diff from another changeset...

 
11
12
13
14
 
15
16
17
 
25
26
27
28
 
29
30
31
32
33
34
 
197
198
199
200
201
202
203
 
211
212
213
214
215
216
217
 
11
12
13
 
14
15
16
17
 
25
26
27
 
28
29
 
 
30
31
32
 
195
196
197
 
198
199
200
 
208
209
210
 
211
212
213
@@ -11,7 +11,7 @@
 from PyQt4.QtCore import *  from PyQt4.QtGui import *   -from mercurial import hg, ui, util, error +from mercurial import util, error    from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import cmdui, qtlib, thgrepo @@ -25,10 +25,8 @@
  progress = pyqtSignal(QString, object, QString, QString, object)     def __init__(self, ui, pats, parent=None, **opts): - super(RenameDialog, self).__init__(parent=None) + super(RenameDialog, self).__init__(parent)   self.iscopy = (opts.get('alias') == 'copy') - src = '' - dest = ''   src, dest = self.init_data(ui, pats)   self.init_view(src, dest)   @@ -197,7 +195,6 @@
  caption = _('Select Destination Folder')   FD = QFileDialog   if os.path.isfile(curr): - filter = 'All Files (*.*)'   filename = FD.getOpenFileName(parent=self, caption=caption,   options=FD.ReadOnly)   response = hglib.fromunicode(filename) @@ -211,7 +208,6 @@
  self.src_txt.setText(response)   else:   self.dest_txt.setText(response) - self.compose_command(self.get_src(), self.get_dest())     def copy_chk_toggled(self):   self.setRenameCopy()