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

reporegistry: use name 'root' instead of 'rootpath' for RepoItem

Looks a bit less verbose in the XML

Changeset 65854dcb70db

Parent 542f056c216c

by Adrian Buehlmann

Changes to one file · Browse files at 65854dcb70db Showing diff from parent 542f056c216c Diff from another changeset...

 
116
117
118
119
 
120
121
122
 
123
124
125
126
 
127
128
 
129
130
131
 
139
140
141
142
 
143
144
145
146
147
148
 
 
149
150
151
 
116
117
118
 
119
120
121
 
122
123
124
125
 
126
127
 
128
129
130
131
 
139
140
141
 
142
143
144
145
146
 
 
147
148
149
150
151
@@ -116,16 +116,16 @@
 class RepoItem(RepoTreeItem):   def __init__(self, rootpath='', parent=None):   RepoTreeItem.__init__(self, parent) - self._rootpath = rootpath + self._root = rootpath     def rootpath(self): - return self._rootpath + return self._root     def data(self, column):   if column == 0: - return QVariant(os.path.basename(self._rootpath)) + return QVariant(os.path.basename(self._root))   elif column == 1: - return QVariant(self._rootpath) + return QVariant(self._root)   return QVariant()     def menulist(self): @@ -139,13 +139,13 @@
    def dump(self, xw):   RepoTreeItem.dump(self, xw) - xw.writeAttribute('rootpath', self._rootpath) + xw.writeAttribute('root', self._root)     def undump(self, xr):   print "RepoItem.undump()"   a = xr.attributes() - self._rootpath = str(a.value('', 'rootpath').toString()) - print "self._rootpath = %s" % self._rootpath + self._root = str(a.value('', 'root').toString()) + print "self._root = %s" % self._root   RepoTreeItem.undump(self, xr)   print "RepoItem.undump() finished"