diff mercurial/bookmarks.py @ 25743:ce45bfe8f953

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).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 01 Jul 2015 01:09:57 -0700
parents 328739ea70c3
children aa323b53e3f9
line wrap: on
line diff
--- 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()