[PATCH 3 of 4] bookmarks: make argument names of _set/_del() more specific
Yuya Nishihara
yuya at tcha.org
Sat May 5 22:53:46 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1525488283 -32400
# Sat May 05 11:44:43 2018 +0900
# Node ID f8b12218af5c8d09da0965d631ad6a19fc9df3de
# Parent 81ee88150e0e71017a099067dc164bd8b49071a2
bookmarks: make argument names of _set/_del() more specific
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -130,13 +130,13 @@ class bmstore(object):
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"""
More information about the Mercurial-devel
mailing list