History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18233
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Jemerov
Reporter: Trejkaz
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Created SVN patch is invalid if an empty file exists in the changeset

Created: 28 May 08 06:32   Updated: 28 May 08 12:52
Component/s: Version Control Integration. Subversion

Environment: Windows Vista 64-bit

Build: 7,821
Severity: Medium


 Description  « Hide
If there are any empty files in the changeset, the resulting SVN patch will look like this:

Index: path/to/emptyfile.txt
===================================================================
— path/to/emptyfile.txt Tue May 27 10:56:46 EST 2008
+++ path/to/emptyfile.txt Tue May 27 10:56:46 EST 2008
@@ -0,0 +1,0 @@
Index: path/to/nextfile.txt

As you can see, it claims to have 1 added line, but then doesn't include an added line. This causes an issue for applications which parse the patch.

svn's own output (which I assume to be correct) is as follows:

Index: path/to/emptyfile.txt
===================================================================
Index: path/to/nextfile.txt



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.