bookmarks: make argument names of _set/_del() more specific
authorYuya Nishihara <yuya@tcha.org>
Sat, 05 May 2018 11:44:43 +0900
changeset 45983 82a153e6dc4a7c892b27815bae573b284d74982c
parent 45982 6e2259847f5ff2f49d80bed33646f80c6a99c926
child 45984 04ceb267271a45ae08352d76a9e91f8037ce53e7
push id806
push usergszorc@mozilla.com
push dateFri, 11 May 2018 21:24:31 +0000
bookmarks: make argument names of _set/_del() more specific
mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -125,23 +125,23 @@ class bmstore(object):
         return mark in self._refmap
 
     def __getitem__(self, mark):
         return self._refmap[mark]
 
     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"""
         marks = []
         for m, n in self._refmap.iteritems():
             if n == node:
                 marks.append(m)
         return sorted(marks)