Part of bzrlib
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 20 | Class | PatchSyntax | Undocumented |
| 25 | Class | MalformedPatchHeader | Undocumented |
| 33 | Class | MalformedHunkHeader | Undocumented |
| 41 | Class | MalformedLine | Undocumented |
| 49 | Class | PatchConflict | Undocumented |
| 58 | Function | get_patch_names | Undocumented |
| 78 | Function | parse_range | Parse a patch range, handling the "1" special-case |
| 97 | Function | hunk_from_header | Undocumented |
| 118 | Class | HunkLine | Undocumented |
| 132 | Class | ContextLine | Undocumented |
| 140 | Class | InsertLine | Undocumented |
| 148 | Class | RemoveLine | Undocumented |
| 158 | Function | parse_line | Undocumented |
| 174 | Class | Hunk | No class docstring; 1/6 methods documented |
| 240 | Function | iter_hunks | Undocumented |
| 264 | Class | Patch | No class docstring; 2/6 methods documented |
| 316 | Function | parse_patch | Undocumented |
| 324 | Function | iter_file_patch | Undocumented |
| 347 | Function | iter_lines_handle_nl | Iterates through lines, ensuring that lines that originally had no |
| 368 | Function | parse_patches | Undocumented |
| 373 | Function | difference_index | Find the indext of the first character that differs between two texts |
| 392 | Function | iter_patched | Iterate through a series of lines with a patch applied. |
| Parameters | textrange | The text to parse (type: str) |
| Returns | the position and range, as a tuple (type: (int, int)) | |
Iterates through lines, ensuring that lines that originally had no terminating are produced without one. This transformation may be applied at any point up until hunk line parsing, and is safe to apply repeatedly.