Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

reporegistry: implement newGroup

Changeset d84f6d87934a

Parent f983ec33f4a5

by Adrian Buehlmann

Changes to one file · Browse files at d84f6d87934a Showing diff from parent f983ec33f4a5 Diff from another changeset...

 
170
171
172
 
 
 
 
 
 
 
173
174
175
 
226
227
228
229
 
 
230
231
232
 
170
171
172
173
174
175
176
177
178
179
180
181
182
 
233
234
235
 
236
237
238
239
240
@@ -170,6 +170,13 @@
  return c   return None   + def addGroup(self, name): + ri = self.rootItem + cc = ri.childCount() + self.beginInsertRows(QModelIndex(), cc, cc + 1) + ri.appendChild(RepoGroupItem(name, ri)) + self.endInsertRows() +    class RepoTreeView(QtGui.QTreeView):   def __init__(self, parent): @@ -226,7 +233,8 @@
  self.parent.openrepo(self.selitem.rootpath())     def newGroup(self): - pass + m = self.model() + m.addGroup(_('New Group'))      class RepoRegistryView(QWidget):