Show More
@@ -20,7 +20,7 class dirstate(object): | |||
|
20 | 20 | def __init__(self, opener, ui, root): |
|
21 | 21 | self._opener = opener |
|
22 | 22 | self._root = root |
|
23 |
self._dirty = |
|
|
23 | self._dirty = False | |
|
24 | 24 | self._ui = ui |
|
25 | 25 | |
|
26 | 26 | def __getattr__(self, name): |
@@ -109,11 +109,8 class dirstate(object): | |||
|
109 | 109 | def branch(self): |
|
110 | 110 | return self._branch |
|
111 | 111 | |
|
112 | def markdirty(self): | |
|
113 | self._dirty = 1 | |
|
114 | ||
|
115 | 112 | def setparents(self, p1, p2=nullid): |
|
116 |
self. |
|
|
113 | self._dirty = True | |
|
117 | 114 | self._pl = p1, p2 |
|
118 | 115 | |
|
119 | 116 | def setbranch(self, branch): |
@@ -162,10 +159,10 class dirstate(object): | |||
|
162 | 159 | for a in "_map _copymap _branch _pl _dirs _ignore".split(): |
|
163 | 160 | if hasattr(self, a): |
|
164 | 161 | self.__delattr__(a) |
|
165 |
self._dirty = |
|
|
162 | self._dirty = False | |
|
166 | 163 | |
|
167 | 164 | def copy(self, source, dest): |
|
168 |
self. |
|
|
165 | self._dirty = True | |
|
169 | 166 | self._copymap[dest] = source |
|
170 | 167 | |
|
171 | 168 | def copied(self, file): |
@@ -208,7 +205,7 class dirstate(object): | |||
|
208 | 205 | a marked for addition''' |
|
209 | 206 | |
|
210 | 207 | if not files: return |
|
211 |
self. |
|
|
208 | self._dirty = True | |
|
212 | 209 | for f in files: |
|
213 | 210 | if self._copymap.has_key(f): |
|
214 | 211 | del self._copymap[f] |
@@ -227,7 +224,7 class dirstate(object): | |||
|
227 | 224 | |
|
228 | 225 | def forget(self, files): |
|
229 | 226 | if not files: return |
|
230 |
self. |
|
|
227 | self._dirty = True | |
|
231 | 228 | for f in files: |
|
232 | 229 | try: |
|
233 | 230 | del self._map[f] |
@@ -244,7 +241,7 class dirstate(object): | |||
|
244 | 241 | else: |
|
245 | 242 | self._map[f] = ('n', 0666, -1, 0) |
|
246 | 243 | self._pl = (parent, nullid) |
|
247 |
self. |
|
|
244 | self._dirty = True | |
|
248 | 245 | |
|
249 | 246 | def write(self): |
|
250 | 247 | if not self._dirty: |
@@ -261,7 +258,7 class dirstate(object): | |||
|
261 | 258 | st = self._opener("dirstate", "w", atomictemp=True) |
|
262 | 259 | st.write(cs.getvalue()) |
|
263 | 260 | st.rename() |
|
264 |
self._dirty = |
|
|
261 | self._dirty = False | |
|
265 | 262 | |
|
266 | 263 | def filterfiles(self, files): |
|
267 | 264 | ret = {} |
General Comments 0
You need to be logged in to leave comments.
Login now