Mercurial > hg
comparison mercurial/bookmarks.py @ 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 |
comparison
equal
deleted
inserted
replaced
14846:5097d8b5078c | 14847:400ba7cccbae |
---|---|
30 if ' ' not in line: | 30 if ' ' not in line: |
31 if line: | 31 if line: |
32 msg = _('malformed line in .hg/bookmarks: %r\n') | 32 msg = _('malformed line in .hg/bookmarks: %r\n') |
33 repo.ui.warn( msg % line) | 33 repo.ui.warn( msg % line) |
34 continue | 34 continue |
35 sha, refspec = line.strip().split(' ', 1) | 35 sha, refspec = line.split(' ', 1) |
36 refspec = encoding.tolocal(refspec) | 36 refspec = encoding.tolocal(refspec) |
37 try: | 37 try: |
38 bookmarks[refspec] = repo.changelog.lookup(sha) | 38 bookmarks[refspec] = repo.changelog.lookup(sha) |
39 except error.RepoLookupError: | 39 except error.RepoLookupError: |
40 pass | 40 pass |