use -r option to invoke hg update

Also remove switch_version which becomes redundant and use update
instead