void () { final VirtualFile repo = hgRepositorySelector.getRepository().getRoot(); final String defaultPath = HgUtil.getRepositoryDefaultPath(project, repo); if (!StringUtil.isEmptyOrSpaces(defaultPath)) { addPathsFromHgrc(repo); myRepositoryURL.setText(HgUtil.removePasswordIfNeeded(defaultPath)); myCurrentRepositoryUrl = defaultPath; onChangePullSource(); } }