##// 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 try:
265 try:
266 f.write(self._branch + '\n')
266 f.write(self._branch + '\n')
267 f.close()
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 except: # re-raises
274 except: # re-raises
269 f.discard()
275 f.discard()
270 raise
276 raise
General Comments 0
You need to be logged in to leave comments. Login now