You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Julian Foad (JIRA)" <ji...@apache.org> on 2017/07/24 10:35:00 UTC

[jira] [Reopened] (SVN-2527) svn diff does not use /dev/null as filename for added or removed files

     [ https://issues.apache.org/jira/browse/SVN-2527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Foad reopened SVN-2527:
------------------------------

Looks like this was never resolved for plain 'svn diff', so re-opening.

The change to 'svn diff --git' output was wrong -- see SVN-4689.

> svn diff does not use /dev/null as filename for added or removed files
> ----------------------------------------------------------------------
>
>                 Key: SVN-2527
>                 URL: https://issues.apache.org/jira/browse/SVN-2527
>             Project: Subversion
>          Issue Type: Bug
>          Components: libsvn_diff
>    Affects Versions: ---
>            Reporter: Subversion Importer
>             Fix For: 1.7.0
>
>         Attachments: 1_svn-diff.sh
>
>
> {noformat:nopanel=true}
> svn diff is not usable to generate patches between revisions that either add or remove files.
> Added files must have /dev/null as filename in the ^+++ line.
> Removed files must have /dev/null as filename in the ^--- line.
> patch(1) will recognize this and either refuse to append to an existing file,
> or it will unlink and deleted file.
> Currently the ^--- and ^+++ lines will just contain the filename for both.
> Looking through the 1.3 sources, there is appearently no support for handling add/deletes.
> {noformat}
> Original issue reported by *olh*



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)