简体   繁体   English

如何通过svn中的命令行获取更新列表

[英]How can I get the list of updates via command line in svn

Suppose there is some updation and addition of folder done by some developers in svn. 假设某些开发人员在svn中完成了一些更新和添加文件夹。 Now next day I come and do the update via Tortoisesvn->right-click->update and get the result like: 现在第二天我来通过Tortoisesvn->右键单击 - >更新进行更新,得到如下结果:

在此输入图像描述

It is a very less but in reality there are lots of files. 这是一个非常少,但实际上有很多文件。 Now I want to ask how can I get the same result via command-line. 现在我想问一下如何通过命令行获得相同的结果。 As when I update it with GUI and mistakenly click OK button then all info got disappear(right now I save the screenshot everytime) and I became empty handed. 当我用GUI更新它并错误地点击OK按钮然后所有信息都消失了(现在我每次都保存屏幕截图)然后我空手而归。

Is there any command line which tells me exact output which I got via GUI. 是否有任何命令行告诉我通过GUI获得的确切输出。 I tried svn log command but it does not provide the info same as GUI update. 我尝试了svn log命令,但它没有提供与GUI更新相同的信息。

Use the TortoiseSVN | 使用TortoiseSVN | Check for Modifications dialog . 检查修改对话框 By default, the dialog shows your local modifications, however you can click Check repository button and it will show incoming changes from the repository. 默认情况下,对话框显示您的本地修改,但是您可以单击“ 检查存储库”按钮,它将显示存储库中的传入更改。

Using Subversion command-line client, you can run the command svn status --show-updates that will show you which files will be updated if you run svn update . 使用Subversion命令行客户端,您可以运行命令svn status --show-updates ,它将显示运行svn update将更新哪些文件。

After you close that window, there is no way of getting a list of the files that were updated. 关闭该窗口后,无法获取已更新的文件列表。

You can only capture a list of files that will be updated before the update is performed (by using svn status --show-updates ), or a list of the files that were just updated at the time of the update (by saving, in whatever way you like, the output of svn update ). 您只能捕获将在执行更新之前更新的文件列表(通过使用svn status --show-updates ),或者更新时刚刚更新的文件列表(通过保存,无论你喜欢什么, svn update的输出。

The working copy doesn't keep a history of where it was before each update, so unless you keep a record of which revision you're at after each update, the list of files updated when you run svn update is ephemeral. 工作副本不会记录每次更新之前的位置,因此除非记录每次更新后所处的修订版本,否则运行svn update时更新的文件列表是短暂的。

From the command line, svn update does exactly the same thing as the "update" command in TortoiseSVN, and outputs the actions taken in textual form. 从命令行, svn update与TortoiseSVN中的“update”命令完全相同,并输出以文本形式采取的动作。 But if you have already done an update, it won't show you the information again; 但是,如果您已经完成更新,它将不再向您显示信息; that information is transient. 这些信息是暂时的。 So the command line won't help you. 所以命令行不会帮助你。

However, TortoiseSVN keeps a log of command outputs, including update operations, which you can access at a later time if you do it soon enough afterwards. 但是,TortoiseSVN会保留命令输出的日志,包括更新操作,如果您以后很快就可以在以后访问它。 To see the log, and control how long it stores the data, go to TortoiseSVN→Settings→Saved Data and look at the "action log" section. 要查看日志并控制存储数据的时间,请转到TortoiseSVN→设置→保存的数据,然后查看“操作日志”部分。

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

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