diff -r 48fd1dfb99aa -r 7cc77030c557 mercurial/bookmarks.py --- a/mercurial/bookmarks.py Wed Jan 14 20:29:47 2015 -0800 +++ b/mercurial/bookmarks.py Thu Jan 15 23:17:12 2015 +0100 @@ -115,7 +115,7 @@ ''' mark = None try: - file = repo.opener('bookmarks.current') + file = repo.vfs('bookmarks.current') except IOError, inst: if inst.errno != errno.ENOENT: raise @@ -144,7 +144,7 @@ wlock = repo.wlock() try: - file = repo.opener('bookmarks.current', 'w', atomictemp=True) + file = repo.vfs('bookmarks.current', 'w', atomictemp=True) file.write(encoding.fromlocal(mark)) file.close() finally: