# HG changeset patch # User Bryan O'Sullivan # Date 1184792455 25200 # Node ID 53a1847a99d1683338376c491b6845e8dabff5fc # Parent bcba70b8006d9a8a93385bc33647aef6a0360440 Simplify update. diff -r bcba70b8006d -r 53a1847a99d1 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 18 13:56:08 2007 -0700 +++ b/mercurial/commands.py Wed Jul 18 14:00:55 2007 -0700 @@ -2033,7 +2033,7 @@ 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: