Simplify update.
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 18 Jul 2007 14:00:55 -0700
changeset 4924 b8076522e889
parent 4923 e8c0b52c363c
child 4925 9af1b47fe585
child 4932 93b7e2fa7ee3
Simplify update.
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: