mercurial/commands.py
changeset 5080 73fdc8bd3ed8
parent 5062 3d35c8cb5eb4
child 5083 f94dbc6c7eaf
child 5125 90be02035993
equal deleted inserted replaced
5079:04c1474ccddd 5080:73fdc8bd3ed8
  2022 
  2022 
  2023 def postincoming(ui, repo, modheads, optupdate):
  2023 def postincoming(ui, repo, modheads, optupdate):
  2024     if modheads == 0:
  2024     if modheads == 0:
  2025         return
  2025         return
  2026     if optupdate:
  2026     if optupdate:
  2027         if modheads == 1:
  2027         if modheads <= 1:
  2028             return hg.update(repo, None)
  2028             return hg.update(repo, None)
  2029         else:
  2029         else:
  2030             ui.status(_("not updating, since new heads added\n"))
  2030             ui.status(_("not updating, since new heads added\n"))
  2031     if modheads > 1:
  2031     if modheads > 1:
  2032         ui.status(_("(run 'hg heads' to see heads, 'hg merge' to merge)\n"))
  2032         ui.status(_("(run 'hg heads' to see heads, 'hg merge' to merge)\n"))