Changeset 74979 in spip-zone


Ignore:
Timestamp:
Aug 26, 2013, 10:38:00 PM (6 years ago)
Author:
marcimat@…
Message:

Bien afficher la révision svn extraite lors d'un svn co.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Helpers/Generator.php

    r74978 r74979  
    226226        $this->output->write("<comment>  - Checkout    </comment>");
    227227
    228         if (!$this->makeSvnCommand("checkout $source .")) {
     228        if (!$res = $this->makeSvnCommand("checkout $source .")) {
    229229            $this->output->writeln("<error>[Echec]</error>");
    230230            return false;
    231231        }
    232 
    233232        $last = array_pop($res);
    234         $this->output->writeln("<info>[OK]</info>  ($last)");
     233        if ($last) $last = "($last)";
     234
     235        $this->output->writeln("<info>[OK]</info>  $last");
    235236        return true;
    236237    }
Note: See TracChangeset for help on using the changeset viewer.