Added suport for working with private repos

With this changes we can work with mercurial private repos.