Indefero

Indefero Commit Details


Date:2009-02-26 04:09:38 (15 years 9 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:32dc829a4184fdeee8a96b1fbe4127b360343063
Parents: 4d3812fc35b9e0f83459c41a154aeeaa448589ad
Message:Fixed issue 142, control the patch when creating a new code review.

Changes:

File differences

src/IDF/Form/ReviewCreate.php
108108
109109
110110
111
112
113
114
115
116
117
118
119
120
121
111122
112123
113124
}
}
public function clean_patch()
{
$diff = new IDF_Diff(file_get_contents(Pluf::f('upload_issue_path').'/'
.$this->cleaned_data['patch']));
$diff->parse();
if (count($diff->files) == 0) {
throw new Pluf_Form_Invalid(__('We were not able to parse your patch. Please provide a valid patch.'));
}
return $this->cleaned_data['patch'];
}
public function clean_commit()
{
$commit = self::findCommit($this->cleaned_data['commit']);

Archive Download the corresponding diff file

Page rendered in 0.07231s using 14 queries.