Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py

changeset 3009
bf5ae5d7477d
parent 2963
745d38097b7f
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
3008:7848489bcb92 3009:bf5ae5d7477d
2 2
3 # Copyright (c) 2002 - 2013 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2002 - 2013 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to enter options used to start a project in the VCS. 7 Module implementing a dialog to enter options used to start a project in
8 the VCS.
8 """ 9 """
9 10
10 import os 11 import os
11 12
12 from PyQt4.QtCore import QDir, pyqtSlot 13 from PyQt4.QtCore import QDir, pyqtSlot
64 self.trUtf8("Select Repository-Directory"), 65 self.trUtf8("Select Repository-Directory"),
65 self.vcsUrlEdit.text(), 66 self.vcsUrlEdit.text(),
66 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 67 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
67 68
68 if directory: 69 if directory:
69 self.vcsUrlEdit.setText(Utilities.toNativeSeparators(directory)) 70 self.vcsUrlEdit.setText(
71 Utilities.toNativeSeparators(directory))
70 else: 72 else:
71 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog 73 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog
72 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) 74 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self)
73 dlg.start(self.protocolCombo.currentText() + self.vcsUrlEdit.text()) 75 dlg.start(
76 self.protocolCombo.currentText() + self.vcsUrlEdit.text())
74 if dlg.exec_() == QDialog.Accepted: 77 if dlg.exec_() == QDialog.Accepted:
75 url = dlg.getSelectedUrl() 78 url = dlg.getSelectedUrl()
76 if url: 79 if url:
77 protocol = url.split("://")[0] 80 protocol = url.split("://")[0]
78 path = url.split("://")[1] 81 path = url.split("://")[1]

eric ide

mercurial