I'm looking to use a repository from "out of tree", that is, the .hg directory is not located in a parent directory of the working directory. As an example, consider that my repository root (.hg) is at ~/src/dotfiles. I wish to diff ~, as though the working copy was checked out at ~, but the .hg folder is actually at ~/src/dotfiles/.hg. The -R option doesn't allow this,
$ hg -R ~/src/dotfiles diff ~ abort: /Users/anacrolix not under root '/Users/anacrolix/src/dotfiles' I'd prefer not to have .hg in ~, or use a symlink.