--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py Fri Dec 22 19:45:17 2023 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py Sat Dec 23 15:40:23 2023 +0100 @@ -38,8 +38,11 @@ Constructor @param vcs reference to the vcs object - @param mode mode of the dialog (string, "browse" or "select") - @param parent parent widget (QWidget) + @type Subversion + @param mode mode of the dialog ("browse" or "select") + @type str + @param parent parent widget + @type QWidget """ super().__init__(parent) self.setupUi(self) @@ -96,16 +99,24 @@ """ Private method to generate a tree item in the repository tree. - @param parent parent of the item to be created (QTreeWidget or - QTreeWidgetItem) - @param repopath path of the item (string) - @param revision revision info (string or pysvn.opt_revision_kind) - @param author author info (string) - @param size size info (integer) - @param date date info (integer) - @param nodekind node kind info (pysvn.node_kind) - @param url url of the entry (string) - @return reference to the generated item (QTreeWidgetItem) + @param parent parent of the item to be created + @type QTreeWidget or QTreeWidgetItem + @param repopath path of the item + @type str + @param revision revision info + @type str or pysvn.opt_revision_kind + @param author author info + @type str + @param size size info + @type int + @param date date info + @type int + @param nodekind node kind info + @type pysvn.node_kind + @param url url of the entry + @type str + @return reference to the generated item + @rtype QTreeWidgetItem """ path = url if repopath == "/" else url.split("/")[-1] @@ -143,9 +154,10 @@ """ Private method to perform the svn list command. - @param url the repository URL to browser (string) + @param url the repository URL to browser + @type str @param parent reference to the item, the data should be appended to - (QTreeWidget or QTreeWidgetItem) + @type QTreeWidget or QTreeWidgetItem """ if parent is None: parent = self.repoTree @@ -212,8 +224,10 @@ """ Private method to normalite the url. - @param url the url to normalize (string) - @return normalized URL (string) + @param url the url to normalize + @type str + @return normalized URL + @rtype str """ if url.endswith("/"): return url[:-1] @@ -223,7 +237,8 @@ """ Public slot to start the svn info command. - @param url the repository URL to browser (string) + @param url the repository URL to browser + @type str """ self.repoTree.clear() @@ -253,7 +268,8 @@ """ Private slot called when an item is expanded. - @param item reference to the item to be expanded (QTreeWidgetItem) + @param item reference to the item to be expanded + @type QTreeWidgetItem """ if not self.__ignoreExpand: url = item.data(0, self.__urlRole) @@ -264,7 +280,8 @@ """ Private slot called when an item is collapsed. - @param item reference to the item to be collapsed (QTreeWidgetItem) + @param item reference to the item to be collapsed + @type QTreeWidgetItem """ for child in item.takeChildren(): del child @@ -281,7 +298,8 @@ """ Private slot to show an error message. - @param msg error message to show (string) + @param msg error message to show + @type str """ EricMessageBox.critical(self, self.tr("Subversion Error"), msg) @@ -298,7 +316,8 @@ """ Public method to retrieve the selected repository URL. - @return the selected repository URL (string) + @return the selected repository URL + @rtype str """ items = self.repoTree.selectedItems() if len(items) == 1: