Show More
@@ -8,7 +8,7 b'' | |||||
8 | from mercurial.i18n import _ |
|
8 | from mercurial.i18n import _ | |
9 | from mercurial.node import hex |
|
9 | from mercurial.node import hex | |
10 | from mercurial import encoding, error, util, obsolete |
|
10 | from mercurial import encoding, error, util, obsolete | |
11 |
import errno |
|
11 | import errno | |
12 |
|
12 | |||
13 | class bmstore(dict): |
|
13 | class bmstore(dict): | |
14 | """Storage for bookmarks. |
|
14 | """Storage for bookmarks. | |
@@ -70,7 +70,7 b' class bmstore(dict):' | |||||
70 |
|
70 | |||
71 | # touch 00changelog.i so hgweb reloads bookmarks (no lock needed) |
|
71 | # touch 00changelog.i so hgweb reloads bookmarks (no lock needed) | |
72 | try: |
|
72 | try: | |
73 |
os.utime |
|
73 | repo.svfs.utime('00changelog.i', None) | |
74 | except OSError: |
|
74 | except OSError: | |
75 | pass |
|
75 | pass | |
76 |
|
76 |
@@ -274,6 +274,9 b' class abstractvfs(object):' | |||||
274 | def unlink(self, path=None): |
|
274 | def unlink(self, path=None): | |
275 | return util.unlink(self.join(path)) |
|
275 | return util.unlink(self.join(path)) | |
276 |
|
276 | |||
|
277 | def utime(self, path=None, t=None): | |||
|
278 | return os.utime(self.join(path), t) | |||
|
279 | ||||
277 | class vfs(abstractvfs): |
|
280 | class vfs(abstractvfs): | |
278 | '''Operate files relative to a base directory |
|
281 | '''Operate files relative to a base directory | |
279 |
|
282 |
General Comments 0
You need to be logged in to leave comments.
Login now