From c12dccd3d42f998b99d79d754b240dda51bf7029 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 19 Feb 2012 13:48:42 +0100 Subject: [PATCH] Restore quality of debug output --- src/Composer/Repository/VcsRepository.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Composer/Repository/VcsRepository.php b/src/Composer/Repository/VcsRepository.php index 115baad47..2c4175fa0 100644 --- a/src/Composer/Repository/VcsRepository.php +++ b/src/Composer/Repository/VcsRepository.php @@ -76,7 +76,13 @@ class VcsRepository extends ArrayRepository } foreach ($driver->getTags() as $tag => $identifier) { - $this->io->overwrite('Get composer of ' . $this->packageName . ' (' . $tag . ')', false); + $msg = 'Get composer info for ' . $this->packageName . ' (' . $tag . ')'; + if ($debug) { + $this->io->write($msg); + } else { + $this->io->overwrite($msg, false); + } + $parsedTag = $this->validateTag($versionParser, $tag); if ($parsedTag && $driver->hasComposerFile($identifier)) { try { @@ -122,7 +128,13 @@ class VcsRepository extends ArrayRepository $this->io->overwrite('', false); foreach ($driver->getBranches() as $branch => $identifier) { - $this->io->overwrite('Get composer of ' . $this->packageName . ' (' . $branch . ')', false); + $msg = 'Get composer info for ' . $this->packageName . ' (' . $branch . ')'; + if ($debug) { + $this->io->write($msg); + } else { + $this->io->overwrite($msg, false); + } + $parsedBranch = $this->validateBranch($versionParser, $branch); if ($driver->hasComposerFile($identifier)) { $data = $driver->getComposerInformation($identifier);