Loggerhead fails to browse revisions that change binary files
Bug #91686 reported by
Andrew Bennetts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
James Henstridge | ||
loggerhead |
Fix Released
|
Medium
|
Robey Pointer |
Bug Description
On http://
Related branches
lp:~jamesh/loggerhead/bug-91686
(Merged)
Changed in launchpad: | |
assignee: | nobody → jamesh |
Changed in launchpad: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
Here's the relevant traceback (with some of the path names trimmed for readability):
File "CherryPy- 2.2.1-py2. 4.egg/cherrypy/ _cphttptools. py", line 105, in _run 2.2.1-py2. 4.egg/cherrypy/ _cphttptools. py", line 254, in main *virtual_ path, **self.params) util.py" , line 344, in _f 1.0.1-py2. 4.egg/turbogear s/controllers. py", line 334, in expose run_with_ transaction( transaction 1.0.1-py2. 4.egg/turbogear s/database. py", line 302, in so_rwt 1.0.1-py2. 4.egg/turbogear s/controllers. py", line 351, in <lambda> 1.0.1-py2. 4.egg/turbogear s/controllers. py", line 378, in _execute_func try_call( func, *args, **kw) 1.0.1-py2. 4.egg/turbogear s/errorhandling .py", line 73, in try_call controllers/ revision_ ui.py", line 73, in default util.py" , line 334, in locked history. py", line 596, in get_changes cache.get_ changes( revid_list, get_diffs) util.py" , line 334, in locked changecache. py", line 107, in get_changes get_changes_ uncached( fetch_list, get_diffs) util.py" , line 334, in locked history. py", line 67, in bzrlib_read_locked history. py", line 693, in get_changes_ uncached delta(delta, get_diffs, old_tree, new_tree) util.py" , line 334, in locked history. py", line 809, in parse_delta modify( path, path, fid, kind) history. py", line 801, in handle_modify diff.internal_ diff(old_ path, old_lines, new_path, new_lines, buffer) check_text_ lines(oldlines) textfile. py", line 42, in check_text_lines
self.main()
File "CherryPy-
body = page_handler(
File "loggerhead/
out = f(*a, **kw)
File "<string>", line 3, in default
File "TurboGears-
output = database.
File "<string>", line 5, in run_with_
File "TurboGears-
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "TurboGears-
mapping, fragment, args, kw)))
File "TurboGears-
output = errorhandling.
File "TurboGears-
return func(self, *args, **kw)
File "loggerhead/
change = h.get_changes([ revid ], get_diffs=True)[0]
File "loggerhead/
return unbound(self, *args, **kw)
File "loggerhead/
changes = self._change_
File "loggerhead/
return unbound(self, *args, **kw)
File "loggerhead/
changes = self.history.
File "loggerhead/
return unbound(self, *args, **kw)
File "loggerhead/
return unbound(self, *args, **kw)
File "loggerhead/
entry.changes = self.parse_
File "loggerhead/
return unbound(self, *args, **kw)
File "loggerhead/
handle_
File "loggerhead/
bzrlib.
File "bzrlib/diff.py", line 70, in internal_diff
textfile.
File "bzrlib/
raise BinaryFile()
BinaryFile: File is binary but should be text.
Looks like Loggerhead does not handle changes to binary files well.