mercurial/commands.py
changeset 19797 a9abdb168425
parent 19757 ff00839e8bb3
child 19801 41abe2e3e3b7
equal deleted inserted replaced
19796:544848ef65f2 19797:a9abdb168425
  4525         checkout, movemarkfrom = bookmarks.calculateupdate(ui, repo, checkout)
  4525         checkout, movemarkfrom = bookmarks.calculateupdate(ui, repo, checkout)
  4526         try:
  4526         try:
  4527             ret = hg.update(repo, checkout)
  4527             ret = hg.update(repo, checkout)
  4528         except util.Abort, inst:
  4528         except util.Abort, inst:
  4529             ui.warn(_("not updating: %s\n") % str(inst))
  4529             ui.warn(_("not updating: %s\n") % str(inst))
       
  4530             if inst.hint:
       
  4531                 ui.warn(_("(%s)\n") % inst.hint)
  4530             return 0
  4532             return 0
  4531         if not ret and not checkout:
  4533         if not ret and not checkout:
  4532             if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  4534             if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  4533                 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent)
  4535                 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent)
  4534         return ret
  4536         return ret