SVN更新总结

发布于 2024-07-14 10:28:45 字数 184 浏览 4 评论 0原文

我已经从 SVN 服务器上查看了源代码,这不在我的控制范围内。 我想知道何时有新的更新可用,并将其分类为修改、新增内容等。谷歌搜索让我相信“svn status --show-updates”是我正在寻找的命令。 但是,当我在存储库根目录上运行它时,它不会给我 A/M 标志,而只会在状态列中提供 * 。 关于如何获得这个有什么想法吗? TIA。

I have checked out source code from a SVN server, which is not in my control. I would like to know whenever there are new updates available and classify those as modification, new additions etc. Googling led me to believe "svn status --show-updates" was the command I was looking for. However when I run it on the repository root, it does not gives me the A/M flags but just * in status column. Any ideas on how to get this? TIA.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

只是我以为 2024-07-21 10:28:45

一个很好的工具是 CommitMonitor

A nice tool for the job is CommitMonitor.

开始看清了 2024-07-21 10:28:45

svn 状态< /a> 显示您的工作副本与您签出的存储库副本相比是否有任何更改。 --show-updates 标志显示服务器上是否有可用更新,* 表示有。

编辑:好的,如果你可以使用 gui,我在 eclipse 中使用 subversive,但是为了保持命令行,这个怎么样。 你想要的听起来类似于合并的试运行......你想看看当你更新到 HEAD 时所有的 A、D、M 会发生什么。 所以试试这个:

svn merge --dry-run -r BASE:HEAD 

svn status shows you whether your working copy has any changes compared to the repository copy that you checked out. the --show-updates flag shows whether updates are available on the server, and the * means that there are.

Edit: Ok, if you can go gui, i use subversive in eclipse, but in order to stay commandline, how about this. What you want sounds similar to a dryrun of a merge... you want to see what all the A,D,M will happen when you update to the HEAD. So try this:

svn merge --dry-run -r BASE:HEAD 
沫尐诺 2024-07-21 10:28:45
svn status --show-updates

会将 * 放在自上次更新以来存储库中更改的每个文件的前面。

您可以使用以下命令查看工作副本基础(上次更新)和当前存储库头之间的详细更改:

svn log --revision BASE:HEAD

添加选项 --verbose 将列出所有以 M、A 等开头的已更改文件。
添加选项 --quiet 将隐藏提交消息。

更新:

svn diff --summarize --revision BASE:HEAD

将列出折叠在一个列表中的所有修订版中以 M、A 等开头的所有已更改文件。 我想这就是你要找的。

svn status --show-updates

will put * in front of every file that changed in repository since last update.

You can see detailed changes between your working copy base (last update) and current repository head using:

svn log --revision BASE:HEAD

Adding option --verbose will list all changed files prepended with M, A etc.
Adding option --quiet will hide commit messages.

Update:

svn diff --summarize --revision BASE:HEAD

will list all changed files prepended with M, A etc in all revisions in range collapsed in one list. I guess that's what you're looking for.

时光暖心i 2024-07-21 10:28:45

尝试eSvn。 它具有实时显示文件/目录状态的功能。

Try eSvn. It has a feature to show status of files/directories in real time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文