В папке где тебе нужен будет проект
$ hg clone https://username@bitbucket.org/project .
После этого пропиши в .hg/hgrc:
[paths]
default = https://username@bitbucket.org/project
[auth]
bit.prefix = bitbucket.org
bit.username = username
bit.password = pwd
[hostfingerprints]
bitbucket.org = 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
Все!