Defect #11868
closedGit and Mercurial diff displays deleted files as /dev/null
0%
Description
It's the same bug reported here with ChiliProject: https://www.chiliproject.org/issues/589
Basically, in the diff view of git commits, deleted files show up as changes to the file /dev/null
.
I'm using the Bitnami Redmine Stack, version 2.0.3-1. Administration > Information
shows:
Environment: Redmine version 2.0.3.stable Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.6 Environment production Database adapter MySQL
Updated by Jean-Philippe Lang over 12 years ago
What would be the expected behaviour?
Updated by Humberto Anjos over 12 years ago
Jean-Philippe Lang wrote:
What would be the expected behaviour?
To show the original file names, with some indication that the files are no longer there.
An example of reasonable behavior can be seen here: in this commit, the files Events.cs and Utilities.cs no longer exist. When one clicks in Show Diff Stats, there is an icon showing that those files were removed.
P.S. Optionally, I wouldn't even show their contents too (my diff got truncated here, since some of the removed files were quite long...), but that's an extra :)
Updated by Jean-Philippe Lang over 12 years ago
- Subject changed from /dev/null in commit-diff-views to Git diff displays deleted files as /dev/null
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.2.0
- Resolution set to Fixed
Humberto Anjos wrote:
To show the original file names, with some indication that the files are no longer there.
An example of reasonable behavior can be seen here: in this commit, the files Events.cs and Utilities.cs no longer exist. When one clicks in Show Diff Stats, there is an icon showing that those files were removed.
Fixed in r10424. The indication that the file was deleted is displayed on the revision view.
P.S. Optionally, I wouldn't even show their contents too (my diff got truncated here, since some of the removed files were quite long...), but that's an extra :)
Not sure that this behaviour is desirable to everyone, maybe a seperate feature request.
Updated by Jean-Philippe Lang over 12 years ago
Oh, and don't forget to clear your cache if you upgrade (diff rendering is cached).
Updated by Toshi MARUYAMA over 12 years ago
- Subject changed from Git diff displays deleted files as /dev/null to Git and Mercurial diff displays deleted files as /dev/null