Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN confusion: "local add, incoming add upon merge" What do the words actually refer to?

I'm pretty new to subversion and the docs just aren't making sense to me. I was wondering if someone could break down this error message (from svn st) into plain English, as well as the other one I get local delete, incoming delete upon merge.

To be precise about my question:

  1. What does local add (or local delete) refer to?
  2. What does incoming add (or incoming delete) refer to?

What's mystifying to me is that the branch has absolutely nothing to do with the files that receive these errors. In other words, it doesn't add or delete any of these files locally (what I presume local add/delete means). Besides, if I had deleted the file locally, why would that be in conflict with a deletion in the repo (incoming) anyway?

Background Information

How I got here: I merged trunk into my branch and am trying to commit to my branch.

P.S. I've (tried to) read Managing trunk and feature branches: local delete, incoming delete upon merge, but there's too much terminology. Other questions/answers I've read here on SO don't seem to apply or else are hard to understand.

like image 912
JohnK Avatar asked Jan 27 '14 16:01

JohnK


People also ask

What does SVN merge do?

This basic syntax— svn merge URL —tells Subversion to merge all changes which have not been previously merged from the URL to the current working directory (which is typically the root of your working copy).

How do I create a merge request in SVN?

To add a new merge request, simply go to the Merge Requests sub-tab of your desired SVN repository. Then, select the New Merge Request button to the right of the screen. From there, the source branch can be selected from the From dropdown menu. The target branch can also be selected under To.


1 Answers

Local Add or Local Delete refers to the addition or deletion in the SVN working copy. Incoming Add or Incoming Delete refers to the update from svn repository. For example, user-A and User-B has checked out from Branch1. User-A is working on the file abc.java. User-B has deleted the same file and committed his changes. So now in SVN repository the file abc.java is not present and user-A is still modifying and when he tries to commit, he will get an out of date error. When user-A tried to update his working copy Incoming Delete and conflict occurs in the working copy of User-A. Similar is the case with merging. You can resolve the conflict by svn resolve --accept=working PATH

like image 103
Dipu H Avatar answered Oct 23 '22 22:10

Dipu H