##// END OF EJS Templates
bookmarks: Wrap commictx instead of commit (issue 1515)
David Soria Parra -
r9235:dde45434 default
parent child Browse files
Show More
@@ -246,12 +246,12 b' def reposetup(ui, repo):'
246 246 key = self._bookmarks[key]
247 247 return super(bookmark_repo, self).lookup(key)
248 248
249 def commit(self, *k, **kw):
249 def commitctx(self, ctx, error=False):
250 250 """Add a revision to the repository and
251 251 move the bookmark"""
252 252 wlock = self.wlock() # do both commit and bookmark with lock held
253 253 try:
254 node = super(bookmark_repo, self).commit(*k, **kw)
254 node = super(bookmark_repo, self).commitctx(ctx, error)
255 255 if node is None:
256 256 return None
257 257 parents = self.changelog.parents(node)
General Comments 0
You need to be logged in to leave comments. Login now