# HG changeset patch # User Bryan O'Sullivan # Date 2007-07-18 21:00:55 # Node ID b8076522e889859ce8954ac5655b210531b25d45 # Parent e8c0b52c363c066b80e5d3fa4ece9f47f4d9adff Simplify update. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2018,7 +2018,7 @@ def postincoming(ui, repo, modheads, opt return if optupdate: if modheads == 1: - return hg.update(repo, repo.changelog.tip()) # update + return hg.update(repo, None) else: ui.status(_("not updating, since new heads added\n")) if modheads > 1: