bookmarks: make argument names of _set/_del() more specific
authorYuya Nishihara <yuya@tcha.org>
Sat, 05 May 2018 11:44:43 +0900
changeset 37895 82a153e6dc4a
parent 37894 6e2259847f5f
child 37896 04ceb267271a
bookmarks: make argument names of _set/_del() more specific
mercurial/bookmarks.py
--- 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"""