Mercurial > hg > mercurial
comparison mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupport.java @ 374:5525f6f23f2e
Use url without credentials to choose local mirror dir
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Thu, 09 Feb 2012 14:00:14 +0400 |
parents | 2869f49b9211 |
children | a4829fde54f5 |
comparison
equal
deleted
inserted
replaced
373:1350f99b43bc | 374:5525f6f23f2e |
---|---|
743 return label.replace(':', '_').replace('\r', '_').replace('\n', '_'); | 743 return label.replace(':', '_').replace('\r', '_').replace('\n', '_'); |
744 } | 744 } |
745 | 745 |
746 private File getWorkingDir(Settings s) { | 746 private File getWorkingDir(Settings s) { |
747 File customDir = s.getCustomWorkingDir(); | 747 File customDir = s.getCustomWorkingDir(); |
748 return customDir != null ? customDir : myMirrorManager.getMirrorDir(s.getRepositoryUrlWithCredentials()); | 748 return customDir != null ? customDir : myMirrorManager.getMirrorDir(s.getRepository()); |
749 } | 749 } |
750 | 750 |
751 private Settings createSettings(final VcsRoot root) throws VcsException { | 751 private Settings createSettings(final VcsRoot root) throws VcsException { |
752 Settings settings = new Settings(myHgPathProvider, root); | 752 Settings settings = new Settings(myHgPathProvider, root); |
753 String customClonePath = settings.getCustomClonePath(); | 753 String customClonePath = settings.getCustomClonePath(); |