diff -r 4ac9cf3d810c -r 7f5dab94e48c mercurial/repair.py --- a/mercurial/repair.py Fri Nov 09 14:49:30 2012 -0800 +++ b/mercurial/repair.py Wed Nov 07 16:21:39 2012 -0600 @@ -6,7 +6,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from mercurial import changegroup, bookmarks +from mercurial import changegroup from mercurial.node import short from mercurial.i18n import _ import os @@ -181,7 +181,7 @@ for m in updatebm: bm[m] = repo[newbmtarget].node() - bookmarks.write(repo) + bm.write() except: # re-raises if backupfile: ui.warn(_("strip failed, full bundle stored in '%s'\n")