bookmark: remove the "touch changelog" hack
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 01 Jul 2015 01:09:57 -0700
changeset 25743 ce45bfe8f953
parent 25742 d859123e0f47
child 25744 e78a80f8f51e
bookmark: remove the "touch changelog" hack Any changes to bookmarks used to touch the changelog to ensure hgweb was reloaded. This was fairly hacky and stops working when bookmarks are moved as part of the transaction. As hgweb is now explicitly tracking bookmark changes, we can remove this hack (and no tests break).
mercurial/bookmarks.py
--- a/mercurial/bookmarks.py	Mon Jun 29 13:44:24 2015 -0700
+++ b/mercurial/bookmarks.py	Wed Jul 01 01:09:57 2015 -0700
@@ -94,12 +94,6 @@
             self._write(file)
             file.close()
 
-            # touch 00changelog.i so hgweb reloads bookmarks (no lock needed)
-            try:
-                repo.svfs.utime('00changelog.i', None)
-            except OSError:
-                pass
-
         finally:
             wlock.release()