找出主干和分支之间的区别? [英] Find difference between trunk and branch?

查看:46
本文介绍了找出主干和分支之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以找到卡车与分支 0.4.x 之间的区别?

Is there a way to find the differences between the trunk and say a branch 0.4.x?

我需要创建一个标签-但是我不记得我最近的更正是在树干还是在分支中完成的。

I need to create a tag - however I can't remember if my latest corrections were done in the trunk or the branch.

推荐答案

如果手头有存储库的签出,则可以使用 ^ (插入符号,在手册)表示法引用了像这样的仓库:

If you have a checkout of the repository at hand, you can use the ^ (caret, search for it in the manual) notation to reference the root of the repo like this:

svn diff --old ^/branches/0.4.x --new ^/trunk

此功能从Subversion 1.6开始有效。

This works since Subversion 1.6.

如果您有较旧的版本或没有方便的回购,您可以使用绝对路径,如原始红皮书

If you have an older subversion or no handy checkout of the repo, you can use absolute paths, as described in the original redbook:

svn diff --old http://.../repo/branches/0.4.x --new http://.../repo/trunk/

应该会为您提供所需的答案。

should give you the answer you're looking for.

用存储库的实际URL替换 http://.../repo/

Replace http://.../repo/ with the actual URL of your repository.

这篇关于找出主干和分支之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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