##// END OF EJS Templates
dirstate: refresh _branch cache entry after writing it
Idan Kamara -
r18317:365fecd9 default
parent child Browse files
Show More
@@ -265,6 +265,12 b' class dirstate(object):'
265 265 try:
266 266 f.write(self._branch + '\n')
267 267 f.close()
268
269 # make sure filecache has the correct stat info for _branch after
270 # replacing the underlying file
271 ce = self._filecache['_branch']
272 if ce:
273 ce.refresh()
268 274 except: # re-raises
269 275 f.discard()
270 276 raise
General Comments 0
You need to be logged in to leave comments. Login now