Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Revisions to stop merge at & merge markers in the source
Revisions to stop merge at & merge markers in the source [message #534046] Mon, 17 May 2010 19:38 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 813
Registered: July 2009
Senior Member
I'm using Subversive 0.7.9, with the 1.1.7 connector, talking to SVN 1.4.x on the server.

I'm doing some merging experiments to get a better feel for how this works. I would appreciate some explanation or elaboration of the minor issues I saw while going down this path.

I checked out two copies of a project, appending "-<branch>" and "-trunk" to each name, where the former was checked out from a branch, and the latter from the trunk.

I selected the "-trunk" project and selected "Merge" from the menu. In the "URL tab" (as opposed to "2 URLs"), I browsed to the project branch (the same one that I used to check out the other project). In the "Start Revision" I selected "Head Revision".

In the "Stop Revision" I first tried leaving this also set at "Head Revision". When I clicked OK, I found that this did nothing. I suppose this was simply saying that it was merging from a zero-length revision range, so there was nothing to do.

I then tried clicking "Browse" on the "Stop Revision". In the list of revisions, I first tried selecting the first revision and executing that merge. This appeared to be identical to the run with both at "Head Revision". I suppose the first revision is the head revision, so this should be the same.

I then selected the second revision and executed the merge. This is the first test where I expected to see changes. It went into the Synchronize perspective, and it showed me the only file that changed as a conflict. The "Remote File" pane looked as I expected it, but the "Local File" pane had "<<<<< .working", "=====", and ">>>>> .merge-right.r<revision>" lines. This was somewhat surprising. I've done merges in the past, and I've found that this happens sometimes, but not always. Will this only happen when there is a conflict? Is this perhaps a symptom of using SVN 1.4.x on the server?
Re: Revisions to stop merge at & merge markers in the source [message #535059 is a reply to message #534046] Fri, 21 May 2010 08:04 Go to previous messageGo to next message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello David,

> The "Remote File" pane looked as I expected it, but the "Local File"
> pane had "<<<<< .working", "=====", and ">>>>> .merge-right.r<revision>"
> lines. This was somewhat surprising.
You have "<<<<<" and ">>>>>" in file content if file has conflicts, you
can also have these markers if you do update. For more details about
conflict markers and file conflicts you can read in SVN book.

> I'm using Subversive 0.7.9, with the 1.1.7 connector, talking to SVN
> 1.4.x on the server.
>
> I'm doing some merging experiments to get a better feel for how this
> works. I would appreciate some explanation or elaboration of the minor
> issues I saw while going down this path.
>
> I checked out two copies of a project, appending "-<branch>" and
> "-trunk" to each name, where the former was checked out from a branch,
> and the latter from the trunk.
>
> I selected the "-trunk" project and selected "Merge" from the menu. In
> the "URL tab" (as opposed to "2 URLs"), I browsed to the project branch
> (the same one that I used to check out the other project). In the "Start
> Revision" I selected "Head Revision".
>
> In the "Stop Revision" I first tried leaving this also set at "Head
> Revision". When I clicked OK, I found that this did nothing. I suppose
> this was simply saying that it was merging from a zero-length revision
> range, so there was nothing to do.
>
> I then tried clicking "Browse" on the "Stop Revision". In the list of
> revisions, I first tried selecting the first revision and executing that
> merge. This appeared to be identical to the run with both at "Head
> Revision". I suppose the first revision is the head revision, so this
> should be the same.
>
> I then selected the second revision and executed the merge. This is the
> first test where I expected to see changes. It went into the Synchronize
> perspective, and it showed me the only file that changed as a conflict.
> The "Remote File" pane looked as I expected it, but the "Local File"
> pane had "<<<<< .working", "=====", and ">>>>> .merge-right.r<revision>"
> lines. This was somewhat surprising. I've done merges in the past, and
> I've found that this happens sometimes, but not always. Will this only
> happen when there is a conflict? Is this perhaps a symptom of using SVN
> 1.4.x on the server?


--
Best regards,
Igor Burilo
Re: Revisions to stop merge at & merge markers in the source [message #535190 is a reply to message #535059] Fri, 21 May 2010 14:05 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 813
Registered: July 2009
Senior Member
Perhaps I should have clarified my statement.

I know what those markers represent. My point is that I was surprised to see them in Subversive. I was expecting to see an interface that simply showed me the two revisions and indicated that the two changes were in conflict, and that I had to choose one of them. It's simply messy to put the conflict markers in the local file.

Has anyone ever considering making this interface a little smarter?
Re: Revisions to stop merge at & merge markers in the source [message #535677 is a reply to message #535190] Tue, 25 May 2010 08:42 Go to previous message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello David,

When SVN makes merge and there's a conflict it inserts conflict markers
in file content. But if you want to resolve conflicts you can call Edit
Conflicts action from Synchronize view, it doesn't show conflict markers.

> Perhaps I should have clarified my statement.
>
> I know what those markers represent. My point is that I was surprised to
> see them in Subversive. I was expecting to see an interface that simply
> showed me the two revisions and indicated that the two changes were in
> conflict, and that I had to choose one of them. It's simply messy to put
> the conflict markers in the local file.
>
> Has anyone ever considering making this interface a little smarter?


--
Best regards,
Igor Burilo
Previous Topic:How to generate a PSF file with ANT
Next Topic:Modifying file removes it from change set
Goto Forum:
  


Current Time: Fri Sep 20 14:01:06 GMT 2024

Powered by FUDForum. Page generated in 0.03964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top