问题描述
我只想看到已修改、添加等的文件列表,不是内容(svn diff
输出),只看到文件列表比如svn status
.
I want see only the list of files that have been modified, added, etc., not the content (svn diff
outputs that), only the list of files like svn status
.
svn diff -r HEAD
向我倾倒了大量信息,很难快速理解.
svn diff -r HEAD
dumps me tons of information, which is hard to understand quickly.
svn status
仅显示将工作副本与其本地原始版本(不与存储库修订版)进行比较的更改.
svn status
shows only the changes comparing the working copy with its local original version (not with the repository revision).
svn update
不支持 --dry-run
简而言之,我需要类似 svn status
的东西,但是将当前工作副本与存储库修订版进行比较(我将与 HEAD 修订版进行比较).
Briefly, I need something like svn status
, but what compares the current working copy with the repository revision (I'm going to compare with a HEAD revision).
我浏览了 SVN 手册,但对我没有任何帮助,不幸的是 :-/
I looked through the SVN manual, but nothing helped to me, unfortunately :-/
推荐答案
尝试
svn status --show-updates
-u
(或 --show-updates
)选项 svn status
会导致 svn 联系存储库并显示已更改的内容在存储库中 - 这对你来说足够了吗?根据您的需要,您可能还需要 -q
或 --verbose
标志
The -u
(or --show-updates
) option to svn status
causes svn to contact the repository and show stuff that's changed in the repository - is that enough for you ? Depending on what you need, you might want the -q
or --verbose
flag too
这篇关于SVN:如何将工作副本与存储库修订进行比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!