diff -r 4babaa52badf -r 508a3f559553 mercurial/commands.py --- a/mercurial/commands.py Tue Oct 25 14:58:11 2005 -0700 +++ b/mercurial/commands.py Tue Oct 25 15:51:28 2005 -0700 @@ -1824,6 +1824,10 @@ chosen[relname] = 1 return ret + (c, a, d, u) = repo.changes() + repo.forget(filter(choose, a)) + repo.undelete(filter(choose, d)) + r = repo.update(node, False, True, choose, False) for n in relnames: if n not in chosen: