31 def __init__(self, vcs, parent=None): |
31 def __init__(self, vcs, parent=None): |
32 """ |
32 """ |
33 Constructor |
33 Constructor |
34 |
34 |
35 @param vcs reference to the vcs object |
35 @param vcs reference to the vcs object |
36 @param parent parent widget (QWidget) |
36 @type Subversion |
|
37 @param parent parent widget |
|
38 @type QWidget |
37 """ |
39 """ |
38 super().__init__(parent) |
40 super().__init__(parent) |
39 self.setupUi(self) |
41 self.setupUi(self) |
40 SvnDialogMixin.__init__(self) |
42 SvnDialogMixin.__init__(self) |
41 self.setWindowFlags(Qt.WindowType.Window) |
43 self.setWindowFlags(Qt.WindowType.Window) |
54 |
56 |
55 def start(self, projectPath, fn): |
57 def start(self, projectPath, fn): |
56 """ |
58 """ |
57 Public slot to start the svn info command. |
59 Public slot to start the svn info command. |
58 |
60 |
59 @param projectPath path name of the project (string) |
61 @param projectPath path name of the project |
60 @param fn file or directory name relative to the project (string) |
62 @type str |
|
63 @param fn file or directory name relative to the project |
|
64 @type str |
61 """ |
65 """ |
62 cwd = os.getcwd() |
66 cwd = os.getcwd() |
63 os.chdir(projectPath) |
67 os.chdir(projectPath) |
64 try: |
68 try: |
65 with EricMutexLocker(self.vcs.vcsExecutionMutex): |
69 with EricMutexLocker(self.vcs.vcsExecutionMutex): |
174 |
178 |
175 def __showError(self, msg): |
179 def __showError(self, msg): |
176 """ |
180 """ |
177 Private slot to show an error message. |
181 Private slot to show an error message. |
178 |
182 |
179 @param msg error message to show (string) |
183 @param msg error message to show |
|
184 @type str |
180 """ |
185 """ |
181 infoStr = "<p>{0}</p>".format(msg) |
186 infoStr = "<p>{0}</p>".format(msg) |
182 self.infoBrowser.setHtml(infoStr) |
187 self.infoBrowser.setHtml(infoStr) |