Plugins/VcsPlugins/vcsPySvn/SvnCopyDialog.py

changeset 3009
bf5ae5d7477d
parent 2357
f6a2cbf3f514
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
3008:7848489bcb92 3009:bf5ae5d7477d
20 import Utilities 20 import Utilities
21 21
22 22
23 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog): 23 class SvnCopyDialog(QDialog, Ui_SvnCopyDialog):
24 """ 24 """
25 Class implementing a dialog to enter the data for a copy or rename operation. 25 Class implementing a dialog to enter the data for a copy or rename
26 operation.
26 """ 27 """
27 def __init__(self, source, parent=None, move=False, force=False): 28 def __init__(self, source, parent=None, move=False, force=False):
28 """ 29 """
29 Constructor 30 Constructor
30 31
61 """ 62 """
62 target = self.targetEdit.text() 63 target = self.targetEdit.text()
63 if not os.path.isabs(target): 64 if not os.path.isabs(target):
64 sourceDir = os.path.dirname(self.sourceEdit.text()) 65 sourceDir = os.path.dirname(self.sourceEdit.text())
65 target = os.path.join(sourceDir, target) 66 target = os.path.join(sourceDir, target)
66 return Utilities.toNativeSeparators(target), self.forceCheckBox.isChecked() 67 return (Utilities.toNativeSeparators(target),
68 self.forceCheckBox.isChecked())
67 69
68 @pyqtSlot() 70 @pyqtSlot()
69 def on_dirButton_clicked(self): 71 def on_dirButton_clicked(self):
70 """ 72 """
71 Private slot to handle the button press for selecting the target via a 73 Private slot to handle the button press for selecting the target via a

eric ide

mercurial