remote-hg: only update necessary revisions