svn diff

svn怎么查看某文件的修改记录

  • svn diff 文件名

svn diff 文件名 会查看本地版本库中所作的修改。

cd 到文件所属的目录下使用 svn diff 文件名

svn diff xx.cs  

或者直接 svn diff 文件路径/文件名

svn diff xxx/xxx/xx.cs  
  • svn diff -r r133183

svn diff -r 可以查看本次提交所作的修改

svn diff -r r133234

例:

svn log -l 2查看近两次的提交记录

------------------------------------------------------------------------
r133234 | Jonathan | 2020-08-06 02:18:19 +0800 (四, 06  8 2020) | 1 line

Task 684370: System Error running End of Day - create InventoryDaily records times out
------------------------------------------------------------------------
r133216 | MengXiang | 2020-08-05 16:42:16 +0800 (三, 05  8 2020) | 1 line

Rebuild error fix.
------------------------------------------------------------------------

Jonathan在修改完代码后提交了一个 commit,生成了一次提交记录,这次记录的标识是 r133234。

Jonathan提交完后可以通过 svn diff -r r133234来查看本次修改的变动。

  • svn diff -r r133183:r133216

查看某两次提交之间的所有修改。

你可能感兴趣的:(#,SVN)