mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
Simplify update.
This commit is contained in:
parent
261434d5a1
commit
5930d0695b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user