Changeset 119871 in spip-zone


Ignore:
Timestamp:
Jan 20, 2020, 1:54:57 PM (5 weeks ago)
Author:
Cerdic
Message:

debug et validation du fonctionnement en svn

Location:
_plugins_/trad-lang/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/trad-lang/trunk

    • Property subgit:lock:1090d36164d8db297854b95803554bbd7a8836a1 deleted
    • Property subgit:lock:1275c7e104677500685e1b2c42758a3b06905370 set to 2020-01-20T15:00:40.331
  • _plugins_/trad-lang/trunk/salvatore/pousseur.php

    r119867 r119871  
    172172        $parts = parse_url($url_with_credentials);
    173173        if (!empty($parts['user']) and !empty($parts['pass'])){
    174                 $source['user'] = $parts['user'];
    175                 $source['pass'] = $parts['pass'];
     174                $source['user'] = urldecode($parts['user']);
     175                $source['pass'] = urldecode($parts['pass']);
    176176        }
    177177
  • _plugins_/trad-lang/trunk/salvatore/vcs/svn.php

    r119870 r119871  
    9191        $files_to_add = array();
    9292        foreach ($files as $file) {
    93                 if (!salvatore_vcs_svn_lastmodified_file($dir_repo, $file)) {
     93                $status = trim(salvatore_vcs_svn_status_file_dist($dir_repo, $file));
     94                if (strpos($status, '?') !== false) {
    9495                        $files_to_add[] = $file;
    9596                }
     
    122123                $commands[] = "svn add --quiet $files_to_add 2>&1";
    123124        }
    124         // TODO : activer le commit quand on sera en prod
    125         // $commands[] = "svn commit $files{$auth} --no-auth-cache --non-interactive --trust-server-cert -m " . escapeshellarg($message) . " 2>&1";
     125        $commands[] = "svn commit $files{$auth} --no-auth-cache --non-interactive --trust-server-cert -m " . escapeshellarg($message) . " 2>&1";
    126126
    127127        foreach ($commands as $command) {
Note: See TracChangeset for help on using the changeset viewer.