Show More
@@ -27,6 +27,7 b' from . import (' | |||
|
27 | 27 | util, |
|
28 | 28 | ) |
|
29 | 29 | from .utils import ( |
|
30 | stringutil, | |
|
30 | 31 | urlutil, |
|
31 | 32 | ) |
|
32 | 33 | |
@@ -342,7 +343,7 b' def _readactive(repo, marks):' | |||
|
342 | 343 | # No readline() in osutil.posixfile, reading everything is |
|
343 | 344 | # cheap. |
|
344 | 345 | content = repo.vfs.tryread(b'bookmarks.current') |
|
345 |
mark = encoding.tolocal((content |
|
|
346 | mark = encoding.tolocal(stringutil.firstline(content)) | |
|
346 | 347 | if mark == b'' or mark not in marks: |
|
347 | 348 | mark = None |
|
348 | 349 | return mark |
General Comments 0
You need to be logged in to leave comments.
Login now