10 import re |
10 import re |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QDialog |
13 from PyQt6.QtWidgets import QDialog |
14 |
14 |
15 from eric7 import Utilities |
|
16 from eric7.EricWidgets import EricMessageBox |
15 from eric7.EricWidgets import EricMessageBox |
17 from eric7.EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
|
17 from eric7.SystemUtilities import FileSystemUtilities |
18 |
18 |
19 from .Ui_SvnUrlSelectionDialog import Ui_SvnUrlSelectionDialog |
19 from .Ui_SvnUrlSelectionDialog import Ui_SvnUrlSelectionDialog |
20 |
20 |
21 |
21 |
22 class SvnUrlSelectionDialog(QDialog, Ui_SvnUrlSelectionDialog): |
22 class SvnUrlSelectionDialog(QDialog, Ui_SvnUrlSelectionDialog): |
82 reposRoot = match.group(1) |
82 reposRoot = match.group(1) |
83 self.repoRootLabel1.setText(reposRoot) |
83 self.repoRootLabel1.setText(reposRoot) |
84 self.repoRootLabel2.setText(reposRoot) |
84 self.repoRootLabel2.setText(reposRoot) |
85 else: |
85 else: |
86 project = ericApp().getObject("Project") |
86 project = ericApp().getObject("Project") |
87 if Utilities.normcasepath(path) != Utilities.normcasepath( |
87 if FileSystemUtilities.normcasepath( |
88 project.getProjectPath() |
88 path |
89 ): |
89 ) != FileSystemUtilities.normcasepath(project.getProjectPath()): |
90 path = project.getRelativePath(path) |
90 path = project.getRelativePath(path) |
91 reposURL = reposURL.replace(path, "") |
91 reposURL = reposURL.replace(path, "") |
92 self.repoRootLabel1.hide() |
92 self.repoRootLabel1.hide() |
93 self.typeCombo1.hide() |
93 self.typeCombo1.hide() |
94 self.labelCombo1.addItems([reposURL] + sorted(self.vcs.tagsList)) |
94 self.labelCombo1.addItems([reposURL] + sorted(self.vcs.tagsList)) |