[SCM-631] Mercurial SCM provider works with repository like centralized SCM's do Submitted by Alexander Betaev. Patch applyed with modifications due to some changes applyed before.