English 中文(简体)
SVN:为何没有经过修改的分支档案有改动?
原标题:SVN: why unmodified files in branch have revisions of trunk?

AFAIK, SVN 分支制作了所有档案的复印件,并给它们一个修订号码。

However, when I switch to the branch, the revision number of the unmodified files correspond to the revision in the trunk.

例如:

The Suppose I have in the trunk:

foo.txt  2  trunk

当我设立分支机构时:

foo.txt  100 branch  copy from trunk@2

但是,当我对一分行进行检查时,我看到:

foo.txt  2  trunk

为什么在分支部门修订oo,txt 是100?

最佳回答

Subversion does not have a revision number by element, but for the whole file tree. And if you make a copy in Subversion, this is just a reference to the revision that is the base for your copy (so called cheap copy in Subversion). As long as you don t change anything in the file, the file will reference its last change, and that was done in the trunk.

因此,修订编号只是误导,但正确。 是的,它不同于其他版本的控制系统(特别是CVS)。

问题回答

Last change revision (for object) and latest commit revision are different thing (last change still exist).

最后的改变同样是一个信息点,更不用说





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签