Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 24947:a02d293a1079
bookmarks: rename bookmarkcurrent to activebookmark (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 | Tue, 14 Apr 2015 13:17:33 -0700 |
parents | c44534209a0a |
children | 48583a1e44f3 |
comparison
equal
deleted
inserted
replaced
24946:c44534209a0a | 24947:a02d293a1079 |
---|---|
413 @repofilecache('bookmarks') | 413 @repofilecache('bookmarks') |
414 def _bookmarks(self): | 414 def _bookmarks(self): |
415 return bookmarks.bmstore(self) | 415 return bookmarks.bmstore(self) |
416 | 416 |
417 @repofilecache('bookmarks.current') | 417 @repofilecache('bookmarks.current') |
418 def _bookmarkcurrent(self): | 418 def _activebookmark(self): |
419 return bookmarks.readactive(self) | 419 return bookmarks.readactive(self) |
420 | 420 |
421 def bookmarkheads(self, bookmark): | 421 def bookmarkheads(self, bookmark): |
422 name = bookmark.split('@', 1)[0] | 422 name = bookmark.split('@', 1)[0] |
423 heads = [] | 423 heads = [] |