mercurial/commands.py
changeset 5098 90be02035993
parent 5068 d5126a0172ba
parent 5097 73fdc8bd3ed8
child 5122 c80af96943aa
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2012,7 +2012,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"))