简体   繁体   English

查看svn的最新更改

[英]See last changes in svn

I paused development on a project before going on holidays. 在休假之前,我暂停了一个项目的开发。 Now after a few weeks I'd like to know what were the last things in source I was working on? 现在,几周后,我想知道我正在处理的源代码中的最新内容是什么?

Is there a chance to see eg in WebSVN the last changes in the whole repository? 是否有机会看到例如WebSVN中整个存储库中的最后更改?

Open you working copy folder in console (terminal) and choose commands below. 在控制台(终端)中打开工作副本文件夹,然后选择以下命令。 To see last changes : If you have commited last changes use: 要查看最近的更改 :如果您提交了最后的更改,请使用:

svn diff -rPREV

If you left changes in working copy (that's bad practice) than use: 如果您保留工作副本中的更改 (这是不好的做法),而不是使用:

svn diff

To see log of commits : If you're working in branch: 要查看提交日志 :如果您在分支机构中工作:

svn log --stop-on-copy 

If you're working with trunk: 如果您使用的是树干:

svn log | head

or just 要不就

svn log
svn log -r {2009-09-17}:HEAD

where 2009-09-17 is the date you went on holiday. 2009-09-17是您度假的日期。 To see the changed files as well as the summary, add a -v option: 要查看更改的文件以及摘要,请添加-v选项:

svn log -r {2009-09-17}:HEAD -v

I haven't used WebSVN but there will be a log viewer somewhere that does the equivalent of these commands under the hood. 我没有使用过WebSVN,但是在某个地方会有一个日志查看器,其功能与这些命令相当。

If you have not yet commit you last changes before vacation. 如果您尚未提交,则在休假前最后一次更改。 - Command line to the project folder. -命令行到项目文件夹。 - Type ' svn diff ' -输入' svn diff '

If you already commit you last changes before vacation. 如果您已经提交,则在休假前最后一次更改。

  • Browse to your project. 浏览到您的项目。
  • Find a link "View log". 查找链接“查看日志”。 Click it. 点击它。
  • Select top two revision and Click "Compare Revisions" button in the bottom. 选择顶部的两个修订,然后单击底部的“比较修订”按钮。 This will show you the different between the latest and the previous revision. 这将向您显示最新版本和先前版本之间的差异。
svn log -v

If you have a working copy then svn status will help. 如果你有一个工作拷贝,然后SVN状态会有所帮助。

svn status -u -v

The --show-updates ( -u ) option contacts the repository and adds information about things that are out of date. --show-updates-u )选项与存储库联系并添加有关过时事物的信息。

svn log - I'm sure WebSVN has some feature for that too. svn log我确定WebSVN也具有某些功能。

The "View Log" link near the center-top of the WebSVN overview shows the svn-log. WebSVN概述的中心顶部附近的“查看日志”链接显示svn日志。 However, the user-interface isn't exactly brilliant; 但是,用户界面并不十分出色。 I much prefer TortoiseSVN's log viewer. 我非常喜欢TortoiseSVN的日志查看器。

You could use CommitMonitor . 您可以使用CommitMonitor This little tool uses very little RAM and notifies you of all the commits you've missed. 这个小工具占用的RAM很少,并且会通知您所有您错过的提交。

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

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