[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tortoisesvn-users
Subject:    Re: Unexpected "Path found that matches the patch better" with 1.8.5
From:       Stefan_Küng <tortoisesvn () gmail ! com>
Date:       2014-03-19 19:36:57
Message-ID: 5329F1D9.8090809 () gmail ! com
[Download RAW message or body]

On 17.03.2014 20:39, Konstantin Kolinko wrote:
> TortoiseSVN 1.8.5, Build 25224 - 64 Bit , 2014/02/18 20:05:11
> (Subversion 1.8.8, -release)
> on Windows 7
>
> Steps to reproduce:
> 1. Download the following patch:
> http://people.apache.org/~markt/patches/2014-03-17-chunked-headers-tc6-v1.patch
>
> It contains mergeinfo change on "." and changes to two files:
>   java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
>   webapps/docs/changelog.xml
>
> 2. Checkout source code of the project (Apache Tomcat 6.0) from
> https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk
>
> My wc is at r1578508 now.  Size of the wc is 17 Mb (35 Mb together
> with ".svn" directory).
>
> 3. In Explorer right-click in the trunk directory, choose TortoiseSVN
>> Apply patch... and apply the patch.
>
> 4.  Actual behaviour:
>
> A dialog is displayed:
> "TortoiseMerge"
> Path found that matches the patch better.
> The path
> <skipped>\trunk
> seems not to match the paths in the patchfile.
> But TortoiseMerge found the path
> <skipped>\trunk\java\org
> matches it better. Do you want to use the suggested path instead?
>
> with two options
> a) -> "Use the found path."
> "Apply the patch to <skipped>\trunk\java\org
> b) -> "Use the original path."
> "Apply the patch to <skipped>\trunk\
>
> If I choose a) the patch is applied.
> Changes to ChunkedInputFilter.java are applied, as it should be.
> Changes to changelog.xml are rejected - that is OK, as the file has
> been changed since when the patch was created.
>
> If I choose b),
> the following empty directories are created and 'added', note the
> mossing "java/org" prefix:  apache/coyote/http11/filters
> and both changes to ChunkedInputFilter.java and changelog.xml are rejected.
>
> Expected behaviour
> Apply the patch at the correct path (project trunk) and without such dialog.
>
> 5. SVN Command Line works correctly:
>
> ...\trunk>svn patch 2014-03-17-chunked-headers-tc6-v1.patch
> Skipped missing target: '.'
> U         java\org\apache\coyote\http11\filters\ChunkedInputFilter.java
> C         webapps\docs\changelog.xml
>>          rejected hunk @@ -44,6 +44,15 @@
> Summary of conflicts:
>    Text conflicts: 1
>    Skipped paths: 1
>
> ...\trunk>svn st
> M       java\org\apache\coyote\http11\filters\ChunkedInputFilter.java
> ?       webapps\docs\changelog.xml.svnpatch.rej
>
> Note that ChunkedInputFilter.java is patched correctly and a
> *.svnpatch.rej file is created for rejected hunk for changelog.xml


Created issue #626 for this:
http://code.google.com/p/tortoisesvn/issues/detail?id=626

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3074848

To unsubscribe from this discussion, e-mail: [users-unsubscribe@tortoisesvn.tigris.org].
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic