@ -15,6 +15,7 @@ import optparse
import os
import os
import shutil
import shutil
import socket
import socket
import subprocess
import sys
import sys
import tempfile
import tempfile
import traceback
import traceback
@ -317,11 +318,14 @@ def _SendChangeSVN(options):
try :
try :
# Don't use '--non-interactive', since we want it to prompt for
# Don't use '--non-interactive', since we want it to prompt for
# crendentials if necessary.
# crendentials if necessary.
command = [ ' svn ' , ' checkout ' , ' --depth ' , ' empty ' ,
command = [ ' svn ' , ' checkout ' , ' --depth ' , ' empty ' , ' -q ' ,
options . svn_repo , temp_dir ]
options . svn_repo , temp_dir ]
if options . email :
if options . email :
command + = [ ' --username ' , options . email ]
command + = [ ' --username ' , options . email ]
RunCommand ( command )
# Don't use RunCommand() since svn may prompt for information.
use_shell = sys . platform . startswith ( " win " )
subprocess . Popen ( command , shell = use_shell ) . communicate ( )
# TODO(maruel): Use a subdirectory per user?
# TODO(maruel): Use a subdirectory per user?
current_time = str ( datetime . datetime . now ( ) ) . replace ( ' : ' , ' . ' )
current_time = str ( datetime . datetime . now ( ) ) . replace ( ' : ' , ' . ' )
file_name = ( EscapeDot ( options . user ) + ' . ' + EscapeDot ( options . name ) +
file_name = ( EscapeDot ( options . user ) + ' . ' + EscapeDot ( options . name ) +