我怎样才能从我的 php svn commit [英] how can I svn commit from my php
问题描述
我一直试图让我的 php 能够创建 sql 过程文件.我的页面按其需要执行所有操作.它甚至可以正确写入文件,但现在我需要它将文件添加到 svn 然后提交.我一直在努力
I have been trying to get my php to be able to create sql procedure files. My page does everything just as it needs to. It even writes to file correctly, but now I need it to add the file to svn and then also commit. I have been trying
system("svn commit", $trash);
但我似乎无法让它工作.我已经能够得到
but I cannot seem to get it to work. I have been able to get
system("svn add ".$fileName);
开始工作,我得到常见的添加了 A……文件名"或它所说的任何内容.我认为当我尝试提交文件 svn 正在等待身份验证或其他东西时,我认为这是因为我没有在 $trash
...
to work and i get common "A................fileName added" or what ever it says. I think that when I try to commit the file svn is waiting for authentication or something, I think this because I don't get anything back in the $trash
...
感谢所有帮助,谢谢.
推荐答案
您可以使用完整的 svn commit 命令行,例如:
You can go with a full svn commit command line like :
svn commit --username USER --password PASS
更多选项位于:http://svnbook.red-bean.com/en/1.1/re06.html
这篇关于我怎样才能从我的 php svn commit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!