##// END OF EJS Templates
bookmarks: touch changelog on write to force hgweb reload
Matt Mackall -
r11440:5fe4302c stable
parent child Browse files
Show More
@@ -53,6 +53,13 b' def write(repo):'
53 for refspec, node in refs.iteritems():
53 for refspec, node in refs.iteritems():
54 file.write("%s %s\n" % (hex(node), refspec))
54 file.write("%s %s\n" % (hex(node), refspec))
55 file.rename()
55 file.rename()
56
57 # touch 00changelog.i so hgweb reloads bookmarks (no lock needed)
58 try:
59 os.utime(repo.sjoin('00changelog.i'), None)
60 except OSError:
61 pass
62
56 finally:
63 finally:
57 wlock.release()
64 wlock.release()
58
65
General Comments 0
You need to be logged in to leave comments. Login now