changeset viewer doesn't properly handle a changeset which only adds the blank line at the end of a file (BB-1002)

timeless avatartimeless created an issue

https://bitbucket.org/timeless/transifex/changeset/442da961f445

$ hg clone https://timeless@bitbucket.org/timeless/transifex
...
commit 2563: 	442da961f445
parent 2562: 	ac88e9c5e7d3
branch: 	default
Adding missing blank line at end of file
...
Changed (Δ1 byte):
raw changeset »

transifex/addons/locks/templates/lock_resource_action.html (binary file changed)

Up to file-list transifex/addons/locks/templates/lock_resource_action.html:

Binary file has changed or diff was empty. 

"Raw" output from bitbucket

https://bitbucket.org/timeless/transifex/changeset/442da961f445/raw/transifex-442da961f445.diff

# HG changeset patch -- Bitbucket.org
# Project transifex
# URL http://bitbucket.org/timeless/transifex/overview
# User timeless <timeless@gmail.com>
# Date 1286268675 -10800
# Node ID 442da961f445af8977f1b5618634658cc5af7cef
# Parent  ac88e9c5e7d3af2c7b08f54f003049956234753d
Adding missing blank line at end of file

The changeset is not empty

Here is the export by hg (1.6.3):

timeless-mbp:mainline timeless$ hg export .
# HG changeset patch
# User timeless <timeless@gmail.com>
# Date 1286268675 -10800
# Node ID 442da961f445af8977f1b5618634658cc5af7cef
# Parent  ac88e9c5e7d3af2c7b08f54f003049956234753d
Adding missing blank line at end of file

diff --git a/transifex/addons/locks/templates/lock_resource_action.html b/transifex/addons/locks/templates/lock_resource_action.html
--- a/transifex/addons/locks/templates/lock_resource_action.html
+++ b/transifex/addons/locks/templates/lock_resource_action.html
@@ -115,4 +115,4 @@
 
 </script>
 
-{% endwith %}
\ No newline at end of file
+{% endwith %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.