Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 24946:c44534209a0a
bookmarks: rename readcurrent to readactive (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 23:03:13 -0700 |
parents | 5abd0a76bc8f |
children | a02d293a1079 |
comparison
equal
deleted
inserted
replaced
24945:e0b0fbd47491 | 24946:c44534209a0a |
---|---|
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 _bookmarkcurrent(self): |
419 return bookmarks.readcurrent(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 = [] |
424 for mark, n in self._bookmarks.iteritems(): | 424 for mark, n in self._bookmarks.iteritems(): |