Home > Mobile >  SVN automated submission files and folders
SVN automated submission files and folders

Time:11-28

Why this method performs after I submit failure
Def SvnSubmint () :
Setting={
'the SVN: r' C: \ Program Files \ TortoiseSVN \ bin ',
'the username:' username '
'password', '111111',
'url' : 'https://11.111.11.111/svn/test/aaa/bbb/asdf/Face',
'dist' : 'Q:/test/aaa/BBB/asdf/Face',
'closeOption' : '/closeonend: 3'
}

# print type (setting [' dist])
Dist=setting [' dist]
OS. The chdir (setting [' SVN '])
CMD='TortoiseProc. Exe/command: mkdir - q - parents - m/path' + setting [' url '] + '- the username + setting [' username'] + '- password + setting [' password'] + '/notempfile + setting [' closeOption]
Result=OS. System (CMD) # SVN mkdir command
CMD='TortoiseProc. Exe/command: checkout/path' + '/notempfile dist + + setting [' url'] + '- the username + setting [' username'] + '- password + setting [' password'] + setting [' closeOption] #
Print CMD
OS. The system (" pause ")
Result=OS. System (CMD) # SVN checkout command
# submit again whether SVN is different, according to the CGT uploading files submitted, no will delete
If setting [' url '] :
CMD='TortoiseProc. Exe/command: diff - r/path' + setting [] 'url' + ', '+ dist + + setting' - the username '[]' username '+' - password + setting [' password '] + '/notempfile + setting [' closeOption]
Result=OS. System (CMD)
CMD='TortoiseProc. Exe/command: add/path' + '/notempfile dist + + setting [' closeOption]
Result=OS. System (CMD) # SVN add command
CMD='TortoiseProc. Exe/command: the update/path' + '/notempfile dist + + setting [' closeOption]
Result=OS. System (CMD) # SVN add command
CMD='TortoiseProc. Exe/command: commit -m/path' + '/notempfile dist + + setting [' closeOption]
Result=OS. System (CMD)



If the result==0:
Print (' SVN commit succes')
The else:
Print (' SVN commit fail ')
  • Related