mercurial/commands.py
branchstable
changeset 27948 7cb7264cfd52
parent 27943 02c5f8ad00ac
child 27950 f0d3c5794380
equal deleted inserted replaced
27947:571ba161f6be 27948:7cb7264cfd52
  5540             ret = hg.update(repo, checkout)
  5540             ret = hg.update(repo, checkout)
  5541         except error.UpdateAbort as inst:
  5541         except error.UpdateAbort as inst:
  5542             msg = _("not updating: %s") % str(inst)
  5542             msg = _("not updating: %s") % str(inst)
  5543             hint = inst.hint
  5543             hint = inst.hint
  5544             raise error.UpdateAbort(msg, hint=hint)
  5544             raise error.UpdateAbort(msg, hint=hint)
  5545         if not ret and not checkout:
  5545         if not ret and movemarkfrom:
  5546             if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  5546             if movemarkfrom == repo['.'].node():
       
  5547                 pass # no-op update
       
  5548             elif bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  5547                 ui.status(_("updating bookmark %s\n") % repo._activebookmark)
  5549                 ui.status(_("updating bookmark %s\n") % repo._activebookmark)
  5548         return ret
  5550         return ret
  5549     if modheads > 1:
  5551     if modheads > 1:
  5550         currentbranchheads = len(repo.branchheads())
  5552         currentbranchheads = len(repo.branchheads())
  5551         if currentbranchheads == modheads:
  5553         if currentbranchheads == modheads: