mercurial/commands.py
branchstable
changeset 16230 d4d35fd0889d
parent 16219 28c5648771d1
child 16231 ce292f1379ba
equal deleted inserted replaced
16228:5b41d5ad52bf 16230:d4d35fd0889d
  4267     if optupdate:
  4267     if optupdate:
  4268         movemarkfrom = repo['.'].node()
  4268         movemarkfrom = repo['.'].node()
  4269         try:
  4269         try:
  4270             ret = hg.update(repo, checkout)
  4270             ret = hg.update(repo, checkout)
  4271         except util.Abort, inst:
  4271         except util.Abort, inst:
  4272             ui.warn(_("not updating: %s\n" % str(inst)))
  4272             ui.warn(_("not updating: %s\n") % str(inst))
  4273             return 0
  4273             return 0
  4274         if not ret and not checkout:
  4274         if not ret and not checkout:
  4275             if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  4275             if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
  4276                 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent)
  4276                 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent)
  4277         return ret
  4277         return ret