annotating a binary file should raise an exception
Bug #305797 reported by
Martin Albisetti
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
We currently annotate any file, regardless of them being binary or not.
I don't think there's any good reason to actually annotate a binary file, so bzr should raise an exception when trying to do so, and, of course, do something sensible on the UI about it.
Loggerhead would benefit from this so we don't try and annotate an ISO image through the web :)
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: annotate |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
We have bzrlib. textfile. check_text_ lines() that will raise BinaryFile if there are null bytes in the first 1024 bytes.
I realize we could use this as part of annotate, I'm not sure if Loggerhead would be able to use this more directly.