Show More
@@ -134,9 +134,6 b' def activeprofiles(repo):' | |||||
134 |
|
134 | |||
135 | return profiles |
|
135 | return profiles | |
136 |
|
136 | |||
137 | def invalidatesignaturecache(repo): |
|
|||
138 | repo._sparsesignaturecache.clear() |
|
|||
139 |
|
||||
140 | def configsignature(repo, includetemp=True): |
|
137 | def configsignature(repo, includetemp=True): | |
141 | """Obtain the signature string for the current sparse configuration. |
|
138 | """Obtain the signature string for the current sparse configuration. | |
142 |
|
139 | |||
@@ -180,7 +177,7 b' def writeconfig(repo, includes, excludes' | |||||
180 | fh.write(e) |
|
177 | fh.write(e) | |
181 | fh.write('\n') |
|
178 | fh.write('\n') | |
182 |
|
179 | |||
183 |
|
|
180 | repo._sparsesignaturecache.clear() | |
184 |
|
181 | |||
185 | def readtemporaryincludes(repo): |
|
182 | def readtemporaryincludes(repo): | |
186 | raw = repo.vfs.tryread('tempsparse') |
|
183 | raw = repo.vfs.tryread('tempsparse') | |
@@ -191,7 +188,7 b' def readtemporaryincludes(repo):' | |||||
191 |
|
188 | |||
192 | def writetemporaryincludes(repo, includes): |
|
189 | def writetemporaryincludes(repo, includes): | |
193 | repo.vfs.write('tempsparse', '\n'.join(sorted(includes))) |
|
190 | repo.vfs.write('tempsparse', '\n'.join(sorted(includes))) | |
194 |
|
|
191 | repo._sparsesignaturecache.clear() | |
195 |
|
192 | |||
196 | def addtemporaryincludes(repo, additional): |
|
193 | def addtemporaryincludes(repo, additional): | |
197 | includes = readtemporaryincludes(repo) |
|
194 | includes = readtemporaryincludes(repo) | |
@@ -229,7 +226,7 b' def prunetemporaryincludes(repo):' | |||||
229 | dirstate.drop(file) |
|
226 | dirstate.drop(file) | |
230 |
|
227 | |||
231 | repo.vfs.unlink('tempsparse') |
|
228 | repo.vfs.unlink('tempsparse') | |
232 |
|
|
229 | repo._sparsesignaturecache.clear() | |
233 | msg = _('cleaned up %d temporarily added file(s) from the ' |
|
230 | msg = _('cleaned up %d temporarily added file(s) from the ' | |
234 | 'sparse checkout\n') |
|
231 | 'sparse checkout\n') | |
235 | repo.ui.status(msg % len(tempincludes)) |
|
232 | repo.ui.status(msg % len(tempincludes)) |
General Comments 0
You need to be logged in to leave comments.
Login now