Simplify update.

This commit is contained in:
Bryan O'Sullivan 2007-07-18 14:00:55 -07:00
parent 261434d5a1
commit 5930d0695b

View File

@ -2033,7 +2033,7 @@ def postincoming(ui, repo, modheads, optupdate):
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: