Show More
@@ -103,30 +103,21 b' class bmstore(dict):' | |||
|
103 | 103 | self._aclean = False |
|
104 | 104 | |
|
105 | 105 | def __setitem__(self, *args, **kwargs): |
|
106 | msg = ("'bookmarks[name] = node' is deprecated, " | |
|
107 | "use 'bookmarks.applychanges'") | |
|
108 | self._repo.ui.deprecwarn(msg, '4.3') | |
|
109 | self._set(*args, **kwargs) | |
|
106 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
|
110 | 107 | |
|
111 | 108 | def _set(self, key, value): |
|
112 | 109 | self._clean = False |
|
113 | 110 | return dict.__setitem__(self, key, value) |
|
114 | 111 | |
|
115 | 112 | def __delitem__(self, key): |
|
116 | msg = ("'del bookmarks[name]' is deprecated, " | |
|
117 | "use 'bookmarks.applychanges'") | |
|
118 | self._repo.ui.deprecwarn(msg, '4.3') | |
|
119 | self._del(key) | |
|
113 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
|
120 | 114 | |
|
121 | 115 | def _del(self, key): |
|
122 | 116 | self._clean = False |
|
123 | 117 | return dict.__delitem__(self, key) |
|
124 | 118 | |
|
125 | 119 | def update(self, *others): |
|
126 | msg = ("bookmarks.update(...)' is deprecated, " | |
|
127 | "use 'bookmarks.applychanges'") | |
|
128 | self._repo.ui.deprecwarn(msg, '4.5') | |
|
129 | return dict.update(self, *others) | |
|
120 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
|
130 | 121 | |
|
131 | 122 | def applychanges(self, repo, tr, changes): |
|
132 | 123 | """Apply a list of changes to bookmarks |
@@ -146,12 +137,6 b' class bmstore(dict):' | |||
|
146 | 137 | bmchanges[name] = (old, node) |
|
147 | 138 | self._recordchange(tr) |
|
148 | 139 | |
|
149 | def recordchange(self, tr): | |
|
150 | msg = ("'bookmarks.recorchange' is deprecated, " | |
|
151 | "use 'bookmarks.applychanges'") | |
|
152 | self._repo.ui.deprecwarn(msg, '4.3') | |
|
153 | return self._recordchange(tr) | |
|
154 | ||
|
155 | 140 | def _recordchange(self, tr): |
|
156 | 141 | """record that bookmarks have been changed in a transaction |
|
157 | 142 |
General Comments 0
You need to be logged in to leave comments.
Login now