Mercurial > hg
changeset 11440:5fe4302cfd72 stable
bookmarks: touch changelog on write to force hgweb reload
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 23 Jun 2010 13:38:52 -0500 |
parents | 778377be3662 |
children | d74fe370ab04 |
files | hgext/bookmarks.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/bookmarks.py Tue Jun 22 21:36:09 2010 +0200 +++ b/hgext/bookmarks.py Wed Jun 23 13:38:52 2010 -0500 @@ -53,6 +53,13 @@ for refspec, node in refs.iteritems(): file.write("%s %s\n" % (hex(node), refspec)) file.rename() + + # touch 00changelog.i so hgweb reloads bookmarks (no lock needed) + try: + os.utime(repo.sjoin('00changelog.i'), None) + except OSError: + pass + finally: wlock.release()