Powershell SVN删除后提交

Powershell SVN删除后提交,powershell,svn,Powershell,Svn,我正在编写脚本以从SVN中的目录中删除所有文件: $svn = 'C:\Program Files\TortoiseSVN\bin\svn.exe' $commitmsg = 'C:\TradeSupport\AB Reports\msg.txt' $Reports = Get-Content -Path 'C:\TradeSupport\AB Reports\AB Reports.csv' Foreach ($Report in $Reports){ & $svn remove

我正在编写脚本以从SVN中的目录中删除所有文件:

$svn = 'C:\Program Files\TortoiseSVN\bin\svn.exe'
$commitmsg = 'C:\TradeSupport\AB Reports\msg.txt'
$Reports = Get-Content -Path 'C:\TradeSupport\AB Reports\AB Reports.csv'
Foreach ($Report in $Reports){
    & $svn remove --force C:\SVN\Test\$Report
    & $svn commit -F $commitmsg C:\SVN\Test\$Report}
& $svn update $commitmsg 'C:\SVN\Test'
这些文件是TestA和TestB。运行脚本会删除文件,但不会提交更改。没有抛出错误,但我必须返回并实际提交更改。自动化此过程的最佳方式是什么


在ForEach循环之外,我还有一个指向目录本身的提交点,但这也不起作用。

我必须将正在工作的目录更改为C:\SVN\Test