您的位置:首页 > 其它

Reading Commits From External File,从svn st中提取文件并上传到svn

2012-02-07 08:35 337 查看
The 'cat' process is completely unneeded. It is better not to use it.

Good:

> cat filenames.txt | xargs svn commit -m "Passed testing"

>

> (if you wanted one commit containing all files) or

Better:

xargs svn commit -m "Passed testing" < filenames.txt

Good:

> cat filenames.txt | xargs -n 1 svn commit -m "Passed testing"

>

> (if you wanted one commit per file).

>

> Paths containing spaces may not be handled properly by the above;

> testing is advised.

Better:

xargs -n 1 svn commit -m "Passed testing" < filenames.txt

Bob

来源自:http://svn.haxx.se/users/archive-2006-05/1130.shtml
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐