Mercurial > hg
changeset 2824:f362222cb8f8
fetch: drop commands.doupdate
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 08 Aug 2006 16:37:41 -0700 |
parents | e0caea53c997 |
children | 0496cfb05243 |
files | hgext/fetch.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/fetch.py Tue Aug 08 16:23:02 2006 -0700 +++ b/hgext/fetch.py Tue Aug 08 16:37:41 2006 -0700 @@ -24,13 +24,13 @@ if modheads == 0: return 0 if modheads == 1: - return commands.doupdate(ui, repo) + return hg.update(repo, repo.changelog.tip()) newheads = repo.heads(parent) newchildren = [n for n in repo.heads(parent) if n != parent] newparent = parent if newchildren: - commands.doupdate(ui, repo, node=hex(newchildren[0])) newparent = newchildren[0] + hg.update(repo, newparent) newheads = [n for n in repo.heads() if n != newparent] err = False if newheads: