From bfa688e22b6100f387abb3801dee605811e954d3 Mon Sep 17 00:00:00 2001 From: Vadim Gelfer Date: Thu, 10 Aug 2006 17:02:11 -0700 Subject: [PATCH] fetch: fix test fail --- hgext/fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hgext/fetch.py b/hgext/fetch.py index 27a0f6ac0c..d8a85aecb6 100644 --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -24,13 +24,13 @@ def fetch(ui, repo, source='default', **opts): if modheads == 0: return 0 if modheads == 1: - return hg.update(repo, repo.changelog.tip(), wlock=wlock) + return hg.clean(repo, repo.changelog.tip(), wlock=wlock) newheads = repo.heads(parent) newchildren = [n for n in repo.heads(parent) if n != parent] newparent = parent if newchildren: newparent = newchildren[0] - hg.update(repo, newparent, wlock=wlock) + hg.clean(repo, newparent, wlock=wlock) newheads = [n for n in repo.heads() if n != newparent] err = False if newheads: