Why am I getting tree conflicts in Subversion?

前端 未结 12 2126
灰色年华
灰色年华 2020-11-30 16:25

I had a feature branch of my trunk and was merging changes from my trunk into my branch periodically and everything was working fine. Today I went to merge the branch back d

12条回答
  •  独厮守ぢ
    2020-11-30 16:43

    I found the solution reading the link that Gary gave (and I suggest to follow this way).

    Summarizing to resolve the tree conflict committing your working directory with SVN client 1.6.x you can use:

    svn resolve --accept working -R .
    

    where . is the directory in conflict.

    WARNING: "Committing your working directory" means that your sandbox structure will be the one you are committing, so if, for instance, you deleted some file from your sandbox they will be deleted from the repository too. This applies only to the conflicted directory.

    In this way, we are suggesting SVN to resolve the conflict (--resolve), accepting the working copy inside your sandbox (--accept working), recursively (-R), starting from the current directory (.).

    In TortoiseSVN, selecting "Resolved" on right click, actually resolves this issue.

提交回复
热议问题