remote-hg: fix to upgrade multiple repos

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>