fetch: remove 'trying' when cloning repos (#8651)

* fetch: remove 'trying' when cloning repos

This makes it similar to what the URL strategy prints.

* change svn/hg names
This commit is contained in:
Matthias Diener 2018-07-10 10:22:51 -05:00 committed by Adam J. Stewart
parent 00c3331de9
commit 90042749e8
2 changed files with 5 additions and 5 deletions

View File

@ -805,7 +805,7 @@ encountered on a Macintosh during ``spack install julia-master``:
.. code-block:: console .. code-block:: console
==> Trying to clone git repository: ==> Cloning git repository:
https://github.com/JuliaLang/julia.git https://github.com/JuliaLang/julia.git
on branch master on branch master
Cloning into 'julia'... Cloning into 'julia'...

View File

@ -542,7 +542,7 @@ def go(self):
@_needs_stage @_needs_stage
def fetch(self): def fetch(self):
tty.msg("Trying to get go resource:", self.url) tty.msg("Getting go resource:", self.url)
with working_dir(self.stage.path): with working_dir(self.stage.path):
try: try:
@ -641,7 +641,7 @@ def fetch(self):
elif self.branch: elif self.branch:
args = 'on branch %s' % self.branch args = 'on branch %s' % self.branch
tty.msg("Trying to clone git repository: %s %s" % (self.url, args)) tty.msg("Cloning git repository: %s %s" % (self.url, args))
git = self.git git = self.git
if self.commit: if self.commit:
@ -788,7 +788,7 @@ def fetch(self):
tty.msg("Already fetched %s" % self.stage.source_path) tty.msg("Already fetched %s" % self.stage.source_path)
return return
tty.msg("Trying to check out svn repository: %s" % self.url) tty.msg("Checking out subversion repository: %s" % self.url)
args = ['checkout', '--force', '--quiet'] args = ['checkout', '--force', '--quiet']
if self.revision: if self.revision:
@ -894,7 +894,7 @@ def fetch(self):
args = [] args = []
if self.revision: if self.revision:
args.append('at revision %s' % self.revision) args.append('at revision %s' % self.revision)
tty.msg("Trying to clone Mercurial repository:", self.url, *args) tty.msg("Cloning mercurial repository:", self.url, *args)
args = ['clone'] args = ['clone']