mercurial/commands.py
changeset 5097 73fdc8bd3ed8
parent 5067 3d35c8cb5eb4
child 5098 90be02035993
child 5123 f94dbc6c7eaf
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2024,7 +2024,7 @@ def postincoming(ui, repo, modheads, opt
     if modheads == 0:
         return
     if optupdate:
-        if modheads == 1:
+        if modheads <= 1:
             return hg.update(repo, None)
         else:
             ui.status(_("not updating, since new heads added\n"))