def modified_regions(self, fname, context=0): if self.file_status(fname) in ("", "A", ): return all_regions old = self.file_from_head(self.repo_path(fname)).split("\n") new = self.get_file(self.repo_path(fname)).split("\n") return modified_regions(old, new, context=context)
def modified_regions(self, fname, context=0): old = self.file_from_tip(fname).split("\n") new = self.get_file(fname).split("\n") return modified_regions(old, new, context=context)