[英]how can I see the changes that were applied locally after an svn update?
After an svn update I want to see the changes made to the updated files.在 svn 更新后,我想查看对更新文件所做的更改。 I usually do so by doing something like:
我通常会这样做:
svn log -l 2 modifiedFile # copy penultimate revision number
svn diff -r penultimateRevNum modifiedFile
But this is quite tedious, specially when several files are involved.但这非常乏味,尤其是涉及多个文件时。 Recently I've learned a more convenient way to do this:
最近我学会了一种更方便的方法来做到这一点:
svn diff -r BASE:PREV modifiedFile
But this method has a problem.但是这种方法有一个问题。 If there were more than one modification committed to this file I only get the difference with the previous modification.
如果对该文件进行了多次修改,我只会得到与之前修改的不同之处。
What I would really want is a simple way to see on the console all the modifications applied on the last update.我真正想要的是一种在控制台上查看上次更新应用的所有修改的简单方法。
Did you try without filename? 您尝试不使用文件名吗?
svn diff -rPREV
I think this is what you want. 我想这就是你想要的。
To see the changes that were made to your local working copy when doing svn up
, not including the changes you may have made to files in your local working copy:要查看在执行
svn up
时对本地工作副本所做的更改,不包括您可能对本地工作副本中的文件所做的更改:
svn diff -rPREV:HEAD
This does a diff between the previous commit and the state of your working copy since the last time you made a commit.自上次提交以来,这会在上一次提交和工作副本的 state 之间产生差异。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.