Show More
@@ -112,6 +112,12 b' class bmstore(dict):' | |||||
112 | return dict.__setitem__(self, key, value) |
|
112 | return dict.__setitem__(self, key, value) | |
113 |
|
113 | |||
114 | def __delitem__(self, key): |
|
114 | def __delitem__(self, key): | |
|
115 | msg = ("'del bookmarks[name]' is deprecated, " | |||
|
116 | "use 'bookmarks.applychanges'") | |||
|
117 | self._repo.ui.deprecwarn(msg, '4.3') | |||
|
118 | self._del(key) | |||
|
119 | ||||
|
120 | def _del(self, key): | |||
115 | self._clean = False |
|
121 | self._clean = False | |
116 | return dict.__delitem__(self, key) |
|
122 | return dict.__delitem__(self, key) | |
117 |
|
123 | |||
@@ -122,7 +128,7 b' class bmstore(dict):' | |||||
122 | for name, node in changes: |
|
128 | for name, node in changes: | |
123 | old = self.get(name) |
|
129 | old = self.get(name) | |
124 | if node is None: |
|
130 | if node is None: | |
125 |
|
|
131 | self._del(name) | |
126 | else: |
|
132 | else: | |
127 | self._set(name, node) |
|
133 | self._set(name, node) | |
128 | if bmchanges is not None: |
|
134 | if bmchanges is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now