简体   繁体   English

svn历史通过命令行

[英]svn history via command line

I am trying to write a utility in python to get me all the files that have been modified for a specific branch....i don't care about the date or who commited. 我试图在python中编写一个实用程序,以获取为特定分支修改的所有文件....我不关心日期或谁提交。

how would I go about doing this? 我该怎么做呢? I can handle the python part, I just can't find a command in svn to give me the output. 我可以处理python部分,我只是在svn中找不到命令给我输出。

svn log -l 10 path/to/file

Here 10 is number of entries from logs 这里10是日志中的条目数

eg 例如

svn log -l 10 pom.xml
svn diff -r REV:HEAD --summarize

其中REV是创建分支的修订版。

您可以使用“svnlook history”命令: Subversion Complete Reference

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM