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

repomodel: remove leading underscore from _datacache

Changeset c05885cdcd37

Parent 9e5318ce20a5

by Steve Borho

Changes to one file · Browse files at c05885cdcd37 Showing diff from parent 9e5318ce20a5 Diff from another changeset...

 
114
115
116
117
118
 
 
119
120
121
122
123
124
 
125
126
127
 
138
139
140
141
 
142
143
144
 
155
156
157
158
 
159
160
161
 
416
417
418
419
 
420
 
114
115
116
 
 
117
118
119
120
121
122
123
 
124
125
126
127
 
138
139
140
 
141
142
143
144
 
155
156
157
 
158
159
160
161
 
416
417
418
 
419
420
@@ -114,14 +114,14 @@
  return nullvariant   row = index.row()   col = index.column() - if (row, col, role) in self._datacache: - return self._datacache[(row, col, role)] + if (row, col, role) in self.datacache: + return self.datacache[(row, col, role)]   try:   result = meth(self, index, role)   except util.Abort:   result = nullvariant   if result is not nullvariant: - self._datacache[(row, col, role)] = result + self.datacache[(row, col, role)] = result   return result   return data   @@ -138,7 +138,7 @@
  repo is a hg repo instance   """   QAbstractTableModel.__init__(self, parent) - self._datacache = {} + self.datacache = {}   self._hasmq = False   self.mqueues = []   self.wd_revs = [] @@ -155,7 +155,7 @@
  self._branch = branch   if oldrepo.root != repo.root:   self.reloadConfig() - self._datacache = {} + self.datacache = {}   try:   wdctxs = self.repo.changectx(None).parents()   except error.Abort: @@ -416,5 +416,5 @@
  def clear(self):   'empty the list'   self.graph = None - self._datacache = {} + self.datacache = {}   self.emit(SIGNAL("layoutChanged()"))