##// END OF EJS Templates
bookmarks: work around missing posixfile_nt.readline()
Patrick Mezard -
r7666:2ad81e9b default
parent child Browse files
Show More
@@ -80,7 +80,8 b' def current(repo):'
80 mark = None
80 mark = None
81 if os.path.exists(repo.join('bookmarks.current')):
81 if os.path.exists(repo.join('bookmarks.current')):
82 file = repo.opener('bookmarks.current')
82 file = repo.opener('bookmarks.current')
83 mark = file.readline()
83 # No readline() in posixfile_nt, reading everything is cheap
84 mark = (file.readlines() or [''])[0]
84 if mark == '':
85 if mark == '':
85 mark = None
86 mark = None
86 file.close()
87 file.close()
General Comments 0
You need to be logged in to leave comments. Login now