##// END OF EJS Templates
strip: use bookmarks.unsetcurrent instead of setcurrent with None
Siddharth Agarwal -
r20099:6284b0b1 default
parent child Browse files
Show More
@@ -209,7 +209,7 b' def stripcmd(ui, repo, *revs, **opts):'
209
209
210 if opts.get('bookmark'):
210 if opts.get('bookmark'):
211 if mark == repo._bookmarkcurrent:
211 if mark == repo._bookmarkcurrent:
212 bookmarks.setcurrent(repo, None)
212 bookmarks.unsetcurrent(repo)
213 del marks[mark]
213 del marks[mark]
214 marks.write()
214 marks.write()
215 ui.write(_("bookmark '%s' deleted\n") % mark)
215 ui.write(_("bookmark '%s' deleted\n") % mark)
General Comments 0
You need to be logged in to leave comments. Login now