Mercurial > hg
changeset 37849:82a153e6dc4a
bookmarks: make argument names of _set/_del() more specific
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 05 May 2018 11:44:43 +0900 |
parents | 6e2259847f5f |
children | 04ceb267271a |
files | mercurial/bookmarks.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Sat May 05 11:34:03 2018 +0900 +++ b/mercurial/bookmarks.py Sat May 05 11:44:43 2018 +0900 @@ -130,13 +130,13 @@ def get(self, mark, default=None): return self._refmap.get(mark, default) - def _set(self, key, value): + def _set(self, mark, node): self._clean = False - self._refmap[key] = value + self._refmap[mark] = node - def _del(self, key): + def _del(self, mark): self._clean = False - del self._refmap[key] + del self._refmap[mark] def names(self, node): """Return a sorted list of bookmarks pointing to the specified node"""