changeset 14847:400ba7cccbae

bookmarks: drop superfluous strip
author Matt Mackall <mpm@selenic.com>
date Wed, 06 Jul 2011 19:25:56 -0500
parents 5097d8b5078c
children 09c9c120a817
files mercurial/bookmarks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bookmarks.py	Tue Jul 05 10:20:27 2011 +0200
+++ b/mercurial/bookmarks.py	Wed Jul 06 19:25:56 2011 -0500
@@ -32,7 +32,7 @@
                     msg = _('malformed line in .hg/bookmarks: %r\n')
                     repo.ui.warn( msg % line)
                 continue
-            sha, refspec = line.strip().split(' ', 1)
+            sha, refspec = line.split(' ', 1)
             refspec = encoding.tolocal(refspec)
             try:
                 bookmarks[refspec] = repo.changelog.lookup(sha)