'switch' command for mercurial, switches the default source/destination of the repository.
$ hg clone http://bitbucket.org/jespern/hgswitch/
$ hg clone ssh://hg@bitbucket.org/jespern/hgswitch/