comparison mercurial/bookmarks.py @ 29066:e6f490e32863 stable

bookmarks: properly invalidate volatile sets when writing bookmarks This corrects a regression introduced during the 3.7 cycle, but which went undetected due to the surviving-but-deprecated write() method on bmstore.
author Augie Fackler <augie@google.com>
date Wed, 04 May 2016 22:44:30 -0400
parents e4fe4e903e97
children 052c9318e464
comparison
equal deleted inserted replaced
29065:dae4552390fc 29066:e6f490e32863
179 179
180 def _write(self, fp): 180 def _write(self, fp):
181 for name, node in self.iteritems(): 181 for name, node in self.iteritems():
182 fp.write("%s %s\n" % (hex(node), encoding.fromlocal(name))) 182 fp.write("%s %s\n" % (hex(node), encoding.fromlocal(name)))
183 self._clean = True 183 self._clean = True
184 self._repo.invalidatevolatilesets()
184 185
185 def expandname(self, bname): 186 def expandname(self, bname):
186 if bname == '.': 187 if bname == '.':
187 return self.active 188 return self.active
188 return bname 189 return bname