Lines Matching refs:revision
111 $revision = time();
118 $this->dbh->prepare($sql)->execute([$bugId, $patch, $revision, $developer]);
122 $revision++;
123 $this->dbh->prepare($sql)->execute([$bugId, $patch, $revision, $developer]);
129 return $revision;
135 private function getPatchFileName(int $revision): string argument
137 return 'p'.$revision.'.patch.txt';
143 public function getPatchFullpath(int $bugId, string $name, int $revision): string argument
145 return $this->getPatchDir($bugId, $name).'/'.$this->getPatchFileName($revision);
160 $revision = $this->newPatchFileName($bugId, $name, $developer);
161 $this->uploader->setDestinationFileName($this->getPatchFileName($revision));
175 $this->detach($bugId, $name, $revision);
199 $this->obsoletePatch($bugId, $name, $revision, $obsolete[0], $obsolete[1]);
202 return $revision;
218 private function detach(int $bugId, string $name, int $revision): void argument
224 $this->dbh->prepare($sql)->execute([$bugId, $name, $revision]);
226 @unlink($this->getPatchFullpath($bugId, $name, $revision));
233 …private function obsoletePatch(int $bugId, string $name, int $revision, string $obsoleteName, int … argument
237 … $this->dbh->prepare($sql)->execute([$bugId, $name, $revision, $obsoleteName, $obsoleteRevision]);