简体   繁体   中英

SVN changes to trunk when working copy is pointing to a branch

I have set up an SVN repository that currently has the stable code in trunk and a branch on which new development is happening.

I would like to fix bugs on trunk and have the people working on the branch pick up bug fixes by merging from trunk on a regular basis. My problem is that I can't figure out how to access the trunk version from Eclipse when I need to fix bugs, then access the branch when I do new development.

The only thing I can think of is using the SVN Switch utility to swap between trunk and branch. But, this seems very clunky. I tried switching without committing some changes I made to one of the files, and the file was then in a conflicted state. This doesn't seem like the right way to me.

Any ideas? Thanks in advance for any help.

无法从Eclipse访问trunk-version,因为如果要从主干到分支进行同步合并,则必须具有分支的工作副本,并且^/trunk仅在合并时被引用(这是Eclipse特定的接口)。

The normal way to do this is to use switch. Before beginning work you should do switch to make sure you are on the branch where you want the changes to go when you commit. If you have local changes, it is OK, but when you switch it is just like doing an update. You can get conflicts if SVN needs to make updates to the files you have local modification in.

If you do not have any local modifications or unversioned files, then switch will not create conflicts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM