equal
deleted
inserted
replaced
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: |