Module b.patches

Part of bzrlib

No module docstring
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.
def get_patch_names(iter_lines):
Undocumented
def parse_range(textrange):
Parse a patch range, handling the "1" special-case
ParameterstextrangeThe text to parse (type: str)
Returnsthe position and range, as a tuple (type: (int, int))
def hunk_from_header(line):
Undocumented
def parse_line(line):
Undocumented
def iter_hunks(iter_lines):
Undocumented
def parse_patch(iter_lines):
Undocumented
def iter_file_patch(iter_lines):
Undocumented
def iter_lines_handle_nl(iter_lines):
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.
   
def parse_patches(iter_lines):
Undocumented
def difference_index(atext, btext):
Find the indext of the first character that differs between two texts
ParametersatextThe first text (type: str)
btextThe second text
str (type: str)
ReturnsThe index, or None if there are no differences within the range (type: int or NoneType)
def iter_patched(orig_lines, patch_lines):
Iterate through a series of lines with a patch applied. This handles a single file, and does exact, not fuzzy patching.
API Documentation for BzrLib, generated by pydoctor at 2008-06-25 00:00:15.