Mercurial > hg
diff mercurial/hg.py @ 24945:e0b0fbd47491
bookmarks: rename setcurrent to activate (API)
Today, the terms 'active' and 'current' are interchangeably used throughout the
codebase in reference to the active bookmark (the bookmark that will be updated
with the next commit). This leads to confusion among developers and users.
This patch is part of a series to standardize the usage to 'active' throughout
the mercurial codebase and user interface.
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Mon, 13 Apr 2015 22:27:01 -0700 |
parents | 27ad6b91f5c2 |
children | 4cc3fb23881d |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Apr 13 21:53:37 2015 -0700 +++ b/mercurial/hg.py Mon Apr 13 22:27:01 2015 -0700 @@ -497,7 +497,7 @@ destrepo.ui.status(status) _update(destrepo, uprev) if update in destrepo._bookmarks: - bookmarks.setcurrent(destrepo, update) + bookmarks.activate(destrepo, update) finally: release(srclock, destlock) if cleandir is not None: