##// END OF EJS Templates
add dirstate._dirtypl variable...
Alexis S. L. Carvalho -
r4952:a11921d2 default
parent child Browse files
Show More
@@ -21,6 +21,7 b' class dirstate(object):'
21 21 self._opener = opener
22 22 self._root = root
23 23 self._dirty = 0
24 self._dirtypl = 0
24 25 self._ui = ui
25 26
26 27 def __getattr__(self, name):
@@ -114,6 +115,7 b' class dirstate(object):'
114 115
115 116 def setparents(self, p1, p2=nullid):
116 117 self.markdirty()
118 self._dirtypl = 1
117 119 self._pl = p1, p2
118 120
119 121 def setbranch(self, branch):
@@ -126,6 +128,7 b' class dirstate(object):'
126 128 def _read(self):
127 129 self._map = {}
128 130 self._copymap = {}
131 if not self._dirtypl:
129 132 self._pl = [nullid, nullid]
130 133 try:
131 134 st = self._opener("dirstate").read()
@@ -135,6 +138,7 b' class dirstate(object):'
135 138 if not st:
136 139 return
137 140
141 if not self._dirtypl:
138 142 self._pl = [st[:20], st[20: 40]]
139 143
140 144 # deref fields so they will be local in loop
@@ -262,6 +266,7 b' class dirstate(object):'
262 266 st.write(cs.getvalue())
263 267 st.rename()
264 268 self._dirty = 0
269 self._dirtypl = 0
265 270
266 271 def filterfiles(self, files):
267 272 ret = {}
General Comments 0
You need to be logged in to leave comments. Login now