Show More
@@ -103,30 +103,21 b' class bmstore(dict):' | |||||
103 | self._aclean = False |
|
103 | self._aclean = False | |
104 |
|
104 | |||
105 | def __setitem__(self, *args, **kwargs): |
|
105 | def __setitem__(self, *args, **kwargs): | |
106 | msg = ("'bookmarks[name] = node' is deprecated, " |
|
106 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
107 | "use 'bookmarks.applychanges'") |
|
|||
108 | self._repo.ui.deprecwarn(msg, '4.3') |
|
|||
109 | self._set(*args, **kwargs) |
|
|||
110 |
|
107 | |||
111 | def _set(self, key, value): |
|
108 | def _set(self, key, value): | |
112 | self._clean = False |
|
109 | self._clean = False | |
113 | return dict.__setitem__(self, key, value) |
|
110 | return dict.__setitem__(self, key, value) | |
114 |
|
111 | |||
115 | def __delitem__(self, key): |
|
112 | def __delitem__(self, key): | |
116 | msg = ("'del bookmarks[name]' is deprecated, " |
|
113 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
117 | "use 'bookmarks.applychanges'") |
|
|||
118 | self._repo.ui.deprecwarn(msg, '4.3') |
|
|||
119 | self._del(key) |
|
|||
120 |
|
114 | |||
121 | def _del(self, key): |
|
115 | def _del(self, key): | |
122 | self._clean = False |
|
116 | self._clean = False | |
123 | return dict.__delitem__(self, key) |
|
117 | return dict.__delitem__(self, key) | |
124 |
|
118 | |||
125 | def update(self, *others): |
|
119 | def update(self, *others): | |
126 | msg = ("bookmarks.update(...)' is deprecated, " |
|
120 | raise error.ProgrammingError("use 'bookmarks.applychanges' instead") | |
127 | "use 'bookmarks.applychanges'") |
|
|||
128 | self._repo.ui.deprecwarn(msg, '4.5') |
|
|||
129 | return dict.update(self, *others) |
|
|||
130 |
|
121 | |||
131 | def applychanges(self, repo, tr, changes): |
|
122 | def applychanges(self, repo, tr, changes): | |
132 | """Apply a list of changes to bookmarks |
|
123 | """Apply a list of changes to bookmarks | |
@@ -146,12 +137,6 b' class bmstore(dict):' | |||||
146 | bmchanges[name] = (old, node) |
|
137 | bmchanges[name] = (old, node) | |
147 | self._recordchange(tr) |
|
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 | def _recordchange(self, tr): |
|
140 | def _recordchange(self, tr): | |
156 | """record that bookmarks have been changed in a transaction |
|
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