# HG changeset patch # User Kevin Bullock # Date 1359309226 21600 # Node ID b1e949f6c17d8de5b145fa1e3f9d4de80f2039d0 # Parent 7da487b0256a8ecf8ebe30a75be79df07baca506 summary: simplify handling of active bookmark diff -r 7da487b0256a -r b1e949f6c17d mercurial/commands.py --- a/mercurial/commands.py Fri Feb 08 21:32:43 2013 +0000 +++ b/mercurial/commands.py Sun Jan 27 11:53:46 2013 -0600 @@ -5574,13 +5574,9 @@ current = repo._bookmarkcurrent # i18n: column positioning for "hg summary" ui.write(_('bookmarks:'), label='log.bookmark') - if current is not None: - try: - marks.remove(current) - ui.write(' *' + current, label='bookmarks.current') - except ValueError: - # current bookmark not in parent ctx marks - pass + if current is not None and current in marks: + ui.write(' *' + current, label='bookmarks.current') + marks.remove(current) for m in marks: ui.write(' ' + m, label='log.bookmark') ui.write('\n', label='log.bookmark')