根据服务器上的文件检查差异 [英] Check diff against file on the server

查看:70
本文介绍了根据服务器上的文件检查差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的机器上有一个存储库的工作副本,并且我知道它已在服务器上更新。我想知道如何通过使用 svn 命令行参数来获得新版本与工作副本中的版本之间的区别。

I have a working copy of a repository on my machine, and I know that it has been updated on the server. I would like to know how to get the difference between the new version and the version in my working copy by using svn command line arguments.

我有办法吗?

推荐答案

工作副本是BASE版本。存储库中的最新副本是修订版HEAD。这会将您的工作副本与HEAD版本进行比较:

The working copy is revision BASE. The latest copy from the repository is revision HEAD. This will compare your working copy against the HEAD revision:

svn diff -r HEAD <file>

实际上,这会将更改吐出来,即告诉您如何从HEAD转到基础。所以从技术上讲,您想要:

Actually that'll spit the changes out in reverse, i.e. it tells you how to go from HEAD to BASE. So technically you want:

svn diff -r BASE:HEAD <file>

您可以保留键盘击键吗?只有你和你的神知道答案。

Can you spare the keyboard strokes? Only you and your deity know that answer.

这篇关于根据服务器上的文件检查差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆