Environment:

Desktop has TortoiseSVN 1.8. Server is running Subversion Edge 4.0.0.

 

Repository layout and initial contents:

file:///C:/TEMP/SVN/mergeinfo

trunk/

ApplicationA/

Program.cs

app.config

Module1.vb

Example1.xlsx (13847 bytes)

branches/Dev/ (empty)

branches/Model/ (copy of trunk/)

 

No properties on Program.cs, app.config or Module1.vb files. Example1.xlsx 
has the following property:

svn:mime-type application/octet-stream

 

Use case:

·         trunk/ copied to branches/Dev/CHG1

·         trunk/ copied to branches/Dev/CHG2

·         branches/Dev/CHG1 checked out, app.config modified, Program.cs 
modified and Example1.xlsx modified (new size: 9095 bytes), changes checked 
in.

·         branches/Dev/CHG1 merged into branches/Model without any 
conflicts and committed.

·         branches/Dev/CHG2 checked out, app.config modified, Module1.vb 
modified, Program.cs modified and Example1.xlsx modified (new size: 3499 
bytes) and changes checked in.

o   Note: changes to app.config and Program.cs are in conflict with the 
changes made via branches/Dev/CHG1.
branches/Model checked out, merge of all revisions from 
file:///C:/TEMP/SVN/mergeinfo/branches/Dev/CHG2 into this working copy 
generates the following expected conflict:

<https://lh3.googleusercontent.com/-7MtqMPfG2NA/Wg77riFpghI/AAAAAAAAAUc/h9fZze9tNxc8iQwXd1HyzyG1TedzS11HACLcBGAs/s1600/01.jpg>


Before any action taken, the working copy looks like:

<https://lh3.googleusercontent.com/-evYmJZT51Eg/Wg773Hv-VrI/AAAAAAAAAUg/AIfOB0sd608TjfdTOYW6nsGCWNn4ZwkegCLcBGAs/s1600/02.jpg>

In this situation, we desire that the repository version (
file:///C:/TEMP/SVN/mergeinfo/branches/Dev/CHG2/ApplicationA/Example1.xlsx 
size 3499 bytes) be the version to merge into the working copy. So we click 
Prefer Repository

<https://lh3.googleusercontent.com/-X0UBz106hLo/Wg78CkV-8OI/AAAAAAAAAUk/p4Mv8nYVwJsHxd4waFV4CtrBf90f-7P-gCLcBGAs/s1600/03.jpg>

Results in merge dialog:

<https://lh3.googleusercontent.com/-OWaD9MS9iz0/Wg78O2ZwWgI/AAAAAAAAAUs/xQv4pSoVY3kcImAxpyvl2eImtyLQvUOLgCLcBGAs/s1600/04.jpg>

Working copy now looks like:

<https://lh3.googleusercontent.com/-SBjwgkeaJN8/Wg78YthPawI/AAAAAAAAAUw/gNHBdvX-Z_E1KltV0XLzgpCXhh_OZ4pcgCLcBGAs/s1600/05.jpg>

We resolve the other 2 conflicts and check the status of the working copy 
and it shows:

<https://lh3.googleusercontent.com/-VayjdopfdSM/Wg78jbdCuKI/AAAAAAAAAU0/KdOgHLZZuewPT3Pi9RpAMQj3FWGxooXdACLcBGAs/s1600/06.jpg>


Our expectation is that the ‘Prefer repository’ selection would have 
updated the Example1.xlsx file to the version of size 3499 bytes, but that 
did not happen. It remains at size 9095 bytes which is the version from 
CHG1 previously merged into branches/Model.

 

If we recreate our test case, but do our merge in command line, we get the 
desired results:

<https://lh3.googleusercontent.com/-PnwzBRGkgWI/Wg7898-5LuI/AAAAAAAAAVE/GTFOCQ8t1z4FLmeAjJm7PXR4e05ZQ72ngCLcBGAs/s1600/07.jpg>

Before taking any action, the working copy shows as:

<https://lh3.googleusercontent.com/-g3cvlHgk3JU/Wg79EbEr9CI/AAAAAAAAAVI/aeCMh_xsJjoIK7IzIPPZf34NlkJMOcKrgCLcBGAs/s1600/08.jpg>

In response to our conflict, we enter tf (theirs-full)

<https://lh3.googleusercontent.com/-mIhNBRCt2V0/Wg79PCTXAgI/AAAAAAAAAVM/cTz-nnYRgRQTXi6CmhnYs1c8alTwfJ44QCLcBGAs/s1600/09.jpg>


The working copy now shows as:

<https://lh3.googleusercontent.com/-KHmmbfHoTGQ/Wg79V3Jrx1I/AAAAAAAAAVQ/6lm0r7QgYqIYzMfzatOfXbZmKep9hZ5EwCLcBGAs/s1600/10.jpg>

The size of Example1.xlsx is now 3499 which is the file size from 
branches/Dev/CHG2. After all other conflicts are resolved, a status of the 
working copy now shows:

<https://lh3.googleusercontent.com/-tO0dbGmxcGU/Wg79eM5XtFI/AAAAAAAAAVY/1xgAwWaCRqskRPaJZgLuCPgapGDGwWivwCLcBGAs/s1600/11.jpg>


Example1.xlsx is now showing a modification as we expected.

 

Can you please guide us on how TortoiseSVN can replicate the same behavior 
that we get with the command line for a binary file such as Example1.xlsx?




-- 
You received this message because you are subscribed to the Google Groups 
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tortoisesvn/220753bc-108d-4822-8dd5-2d0ccaa0b4ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to