Mercurial > public > mercurial-scm > hg
diff mercurial/bookmarks.py @ 13416:5431b3f3e52e
bookmarks: make track.current=True default behaviour and remove option (BC)
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 16 Feb 2011 01:29:26 +0100 |
parents | d073468e3c5f |
children | 0fe36c347c00 |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Wed Feb 16 01:28:42 2011 +0100 +++ b/mercurial/bookmarks.py Wed Feb 16 01:29:26 2011 +0100 @@ -109,16 +109,10 @@ def update(repo, parents, node): marks = repo._bookmarks update = False - if repo.ui.configbool('bookmarks', 'track.current'): - mark = repo._bookmarkcurrent - if mark and marks[mark] in parents: - marks[mark] = node - update = True - else: - for mark, n in marks.items(): - if n in parents: - marks[mark] = node - update = True + mark = repo._bookmarkcurrent + if mark and marks[mark] in parents: + marks[mark] = node + update = True if update: write(repo)