Subversion:如何找到两个标签之间的差异? [英] Subversion: How to find the differences between two tags?

查看:61
本文介绍了Subversion:如何找到两个标签之间的差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道两个标签之间的差异列出了通过以下方法已在这两个标签之间更改的文件。

I know that a diff between two tags lists the 'files' which have been changed between those two tags by the following method.

svn diff tag1 tag2 |grep Index:

Subversion中是否有任何属性或某种技术来找出导致这些文件发生更改的修订号(即,文件的tag1版本和同一文件的tag2版本之间的差异)?

Is there any property in Subversion or some technique to find out revision numbers which caused those files to change (i.e differences between tag1 version of the file and tag2 version of the same file)?

Thx
Vandana

Thx Vandana

推荐答案

您首先可以找到标签的修订版本:

You can first find the revisions of the tags:

svn info http://svn.twig-project.org/tags/RELEASE_0_9_7 | grep 'Last Changed Rev'
Last Changed Rev: 331

svn info http://svn.twig-project.org/tags/RELEASE_0_9_8 | grep 'Last Changed Rev'
Last Changed Rev: 343

您并不是很期待对于差异,您正在寻找日志。因此,在这些修订之间做一个详细的日志,您将得到包括更改文件在内的提交。

You're not really looking for a diff, you are looking for a log. So do a verbose log between those revisions and you will get the commits including changed files.

svn log -v -q -r 331:343 http://svn.twig-project.org/trunk

------------------------------------------------------------------------
r332 | fabien | 2010-06-12 18:30:02 +0200 (Sat, 12 Jun 2010)
Changed paths:
   M /trunk/CHANGELOG
   M /trunk/lib/Twig/Environment.php
------------------------------------------------------------------------
r333 | fabien | 2010-06-12 18:45:04 +0200 (Sat, 12 Jun 2010)
Changed paths:
   M /trunk/CHANGELOG
   M /trunk/lib/Twig/Environment.php

这篇关于Subversion:如何找到两个标签之间的差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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