[jira] [Closed] (SVN-4739) Tree conflict resolver: "Accept incoming deletion" option doing nothing for a locally deleted file

"Daniel Sahlberg (Jira)" <[email protected]> Sun, 2 Jan 2022 11:34:00 +0000 (UTC)
Newsgroups gmane.comp.version-control.subversion.issues
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/SVN-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sahlberg closed SVN-4739.
--------------------------------
    Resolution: Fixed

As far as I can tell this was merged into 1.10,4 and being part of all later releases

> Tree conflict resolver: "Accept incoming deletion" option doing nothing for a locally deleted file
> --------------------------------------------------------------------------------------------------
>
>                 Key: SVN-4739
>                 URL: https://issues.apache.org/jira/browse/SVN-4739
>             Project: Subversion
>          Issue Type: Bug
>          Components: cmdline client
>    Affects Versions: 1.10.0
>            Reporter: Evgeny Kotkov
>            Assignee: Stefan Sperling
>            Priority: Minor
>
> Within the tree conflict resolver, using the "Accept incoming deletion" option for a locally deleted file can (unexpectedly) do nothing and leave the tree conflict unresolved.
> Consider the following PowerShell-based reproduction script:
>  {{    rm test -Recurse -Force -ErrorAction Ignore}}
>  {{    mkdir test}}
>  {{    svnadmin create test/repo}}
>  {{    $url = 'file:///\{0}/test/repo' -f (pwd) -replace '&#92;&#92;', '/'}}
>  {{    svn co $url test/wc}}
>  {{    echo content > test/wc/file.txt}}
>  {{    svn add test/wc/file.txt}}
>  {{    svn ci test/wc -m"r1"}}
>  {{    svn rm test/wc/file.txt}}
>  {{    svn ci test/wc -m"r2"}}
>  {{    svn up test/wc -r1}}
>  {{    svn rm test/wc/file.txt}}
>  {{    svn up test/wc}}
>  {{    svn st test/wc}}
> The result of choosing "(a) Accept incoming deletion" during conflict resolution is unexpected:
>  {{  > svn up}}
>  {{    Updating 'test\wc':}}
>  {{        C test\wc\file.txt}}
>  {{    At revision 2.}}
>  {{    Summary of conflicts:}}
>  {{      Tree conflicts: 1}}
>  {{    Searching tree conflict details for 'test\wc\file.txt' in repository:}}
>  {{    Checking r2... done}}
>  {{    Tree conflict on 'test\wc\file.txt':}}
>  {{    File updated from r1 to r2 was deleted by (me) in r2.}}
>  {{    A deleted file was found in the working copy.}}
>  {{    Select: (p) Postpone, (r) Mark as resolved, (a) Accept incoming deletion,}}
>  {{            (h) Help, (q) Quit resolution: a}}
>  {{    Summary of conflicts:}}
>  {{      Tree conflicts: 1}}
>  {{    > svn st}}
>  {{    !   C test\wc\file.txt}}
>  {{        > local file delete, incoming file delete or move upon update}}
>  {{    Summary of conflicts:}}
>  {{      Tree conflicts: 1}}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)