src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
12 import pysvn 12 import pysvn
13 13
14 from PyQt6.QtCore import pyqtSlot 14 from PyQt6.QtCore import pyqtSlot
15 from PyQt6.QtWidgets import QDialog 15 from PyQt6.QtWidgets import QDialog
16 16
17 from eric7 import Utilities
18 from eric7.EricWidgets import EricMessageBox 17 from eric7.EricWidgets import EricMessageBox
19 from eric7.EricWidgets.EricApplication import ericApp 18 from eric7.EricWidgets.EricApplication import ericApp
19 from eric7.SystemUtilities import FileSystemUtilities
20 20
21 from .Ui_SvnUrlSelectionDialog import Ui_SvnUrlSelectionDialog 21 from .Ui_SvnUrlSelectionDialog import Ui_SvnUrlSelectionDialog
22 22
23 23
24 class SvnUrlSelectionDialog(QDialog, Ui_SvnUrlSelectionDialog): 24 class SvnUrlSelectionDialog(QDialog, Ui_SvnUrlSelectionDialog):
84 reposRoot = match.group(1) 84 reposRoot = match.group(1)
85 self.repoRootLabel1.setText(reposRoot) 85 self.repoRootLabel1.setText(reposRoot)
86 self.repoRootLabel2.setText(reposRoot) 86 self.repoRootLabel2.setText(reposRoot)
87 else: 87 else:
88 project = ericApp().getObject("Project") 88 project = ericApp().getObject("Project")
89 if Utilities.normcasepath(path) != Utilities.normcasepath( 89 if FileSystemUtilities.normcasepath(
90 project.getProjectPath() 90 path
91 ): 91 ) != FileSystemUtilities.normcasepath(project.getProjectPath()):
92 path = project.getRelativePath(path) 92 path = project.getRelativePath(path)
93 reposURL = reposURL.replace(path, "") 93 reposURL = reposURL.replace(path, "")
94 self.repoRootLabel1.hide() 94 self.repoRootLabel1.hide()
95 self.typeCombo1.hide() 95 self.typeCombo1.hide()
96 self.labelCombo1.addItems([reposURL] + sorted(self.vcs.tagsList)) 96 self.labelCombo1.addItems([reposURL] + sorted(self.vcs.tagsList))

eric ide

mercurial