eric6/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py

changeset 8234
fcb6b4b96274
parent 8218
7c09585bd960
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
120 @param date date info (string) 120 @param date date info (string)
121 @param nodekind node kind info (string, "dir" or "file") 121 @param nodekind node kind info (string, "dir" or "file")
122 @param url url of the entry (string) 122 @param url url of the entry (string)
123 @return reference to the generated item (QTreeWidgetItem) 123 @return reference to the generated item (QTreeWidgetItem)
124 """ 124 """
125 path = repopath 125 rev = "" if revision == "" else int(revision)
126 126 sz = "" if size == "" else int(size)
127 if revision == "":
128 rev = ""
129 else:
130 rev = int(revision)
131 if size == "":
132 sz = ""
133 else:
134 sz = int(size)
135 127
136 itm = QTreeWidgetItem(self.parentItem) 128 itm = QTreeWidgetItem(self.parentItem)
137 itm.setData(0, Qt.ItemDataRole.DisplayRole, path) 129 itm.setData(0, Qt.ItemDataRole.DisplayRole, repopath)
138 itm.setData(1, Qt.ItemDataRole.DisplayRole, rev) 130 itm.setData(1, Qt.ItemDataRole.DisplayRole, rev)
139 itm.setData(2, Qt.ItemDataRole.DisplayRole, author) 131 itm.setData(2, Qt.ItemDataRole.DisplayRole, author)
140 itm.setData(3, Qt.ItemDataRole.DisplayRole, sz) 132 itm.setData(3, Qt.ItemDataRole.DisplayRole, sz)
141 itm.setData(4, Qt.ItemDataRole.DisplayRole, date) 133 itm.setData(4, Qt.ItemDataRole.DisplayRole, date)
142 134

eric ide

mercurial