changeset 7666 | 2ad81e9b075b |
parent 7638 | f83a2b1d1a71 |
child 7789 | e8d62d6133c2 |
--- a/hgext/bookmarks.py Sat Jan 17 18:51:40 2009 +0100 +++ b/hgext/bookmarks.py Mon Jan 19 00:36:32 2009 +0100 @@ -80,7 +80,8 @@ mark = None if os.path.exists(repo.join('bookmarks.current')): file = repo.opener('bookmarks.current') - mark = file.readline() + # No readline() in posixfile_nt, reading everything is cheap + mark = (file.readlines() or [''])[0] if mark == '': mark = None file.close()