shelve : change editor does not work when EOL of target file is CRLF.
Bug #783274 reported by
IWATA Hidetaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned |
Bug Description
I have a file in my working tree, eol of which is CRLF.
I can't shelve changes of this file by change editor.
bzr always says 'No changes to shelve' after editing file, regardless of how I edit it.
VERSION INFO:
Bazaar (bzr) 2.4b1
Python interpreter: C:\DEVELOP\
Python standard library: C:\DEVELOP\
Platform: Windows-7-6.1.7600
bzrlib: C:\DEVELOP\
Bazaar configuration: C:\Users\
Bazaar log file: C:\Users\
Changed in bzr: | |
status: | New → Confirmed |
tags: | added: shelve |
Changed in bzr: | |
importance: | Undecided → Medium |
Changed in bzr: | |
importance: | Medium → High |
tags: | added: check-for-breezy |
To post a comment you must log in.
It seems that this comes from two reasons.
First one is in bzrlib. diff.DiffFromTo ol.edit_ file.
This method returns LF ended lines always, even if original data are CRLF ended lines.
Second is in bzrlib. shelf_ui. Shelver. _count_ changed_ regions.
This method returns wrong value when first or last line are changed.