changeset 7372 | e17dbf140035 |
parent 7369 | 87158be081b8 |
child 7387 | 7e9a15fa6c8f |
child 7402 | bffdab64dfbb |
--- a/mercurial/commands.py Fri Nov 14 13:48:23 2008 +0100 +++ b/mercurial/commands.py Fri Nov 14 14:36:17 2008 +0100 @@ -2091,7 +2091,7 @@ if modheads == 0: return if optupdate: - if modheads <= 1 or checkout: + if (modheads <= 1 or len(repo.branchheads()) == 1) or checkout: return hg.update(repo, checkout) else: ui.status(_("not updating, since new heads added\n"))