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