Searched refs:revision (Results 1 – 8 of 8) sorted by relevance
/web-bugs/src/Utils/ |
H A D | PatchTracker.php | 111 $revision = time(); 122 $revision++; 129 return $revision; 135 private function getPatchFileName(int $revision): string argument 137 return 'p'.$revision.'.patch.txt'; 160 $revision = $this->newPatchFileName($bugId, $name, $developer); 175 $this->detach($bugId, $name, $revision); 202 return $revision; 218 private function detach(int $bugId, string $name, int $revision): void argument 224 $this->dbh->prepare($sql)->execute([$bugId, $name, $revision]); [all …]
|
/web-bugs/src/Repository/ |
H A D | PatchRepository.php | 51 public function findDeveloper(int $bugId, string $patch, int $revision): string argument 58 $arguments = [$bugId, $patch, $revision]; 86 public function getPatchContents(int $bugId, string $name, int $revision): string argument 94 $statement->execute([$bugId, $name, $revision]); 97 $contents = @file_get_contents($this->getPatchPath($bugId, $name, $revision)); 100 … throw new \Exception('Cannot retrieve patch revision "'.$revision.'" for patch "'.$name.'"'); 106 … throw new \Exception('No such patch revision "'.$revision.'", or no such patch "'.$name.'"'); 112 private function getPatchPath(int $bugId, string $name, int $revision): string argument 114 return $this->uploadsDir.'/p'.$bugId.'/'.$name.'/'.'p'.$revision.'.patch.txt';
|
H A D | ObsoletePatchRepository.php | 27 public function findObsoletingPatches(int $bugId, string $patch, int $revision): array argument 35 $statement->execute([$bugId, $patch, $revision]); 43 public function findObsoletePatches(int $bugId, string $patch, int $revision): array argument 51 $statement->execute([$bugId, $patch, $revision]);
|
/web-bugs/templates/ |
H A D | patchdiff.php | 2 <p><b>Patch version <?php echo format_date($revision); ?></b></p> 4 …patch=<?php echo $patch_name_url; ?>&revision=<?php echo urlencode($revision); ?>&download… 32 <?php foreach ($revisions as $i => $revision) { ?> 34 echo $patch_name_url; ?>&revision=<?php echo urlencode($revision['revision']); ?>"><?php 35 …echo format_date($revision['revision']); ?></a><?php if ($i < count($revisions) - 1) echo ' | '; ?>
|
H A D | patchdisplay.php | 2 <p><b>Patch version <?php echo format_date($revision); ?></b></p> 4 …patch=<?php echo $patch_name_url; ?>&revision=<?php echo urlencode($revision); ?>&download… 41 $revision, '">[diff to current]</a></li>';
|
/web-bugs/www/ |
H A D | patch-display.php | 30 $revision = isset($_GET['revision']) ? $_GET['revision'] : null; variable 57 if (isset($patch_name) && isset($revision)) { 58 if ($revision == 'latest') { 61 $revision = $revisions[0]['revision']; variable 65 $path = $patchTracker->getPatchFullpath($bug_id, $patch_name, $revision); 83 $patchcontents = $patchRepository->getPatchContents($buginfo['id'], $patch_name, $revision); 92 $handle = $patchRepository->findDeveloper($bug_id, $patch_name, $revision); 93 $obsoletedby = $obsoletePatchRepository->findObsoletingPatches($bug_id, $patch_name, $revision); 94 $obsoletes = $obsoletePatchRepository->findObsoletePatches($bug_id, $patch_name, $revision);
|
H A D | patch-add.php | 107 … $revision = $patchTracker->attach($bug_id, 'patch', $patch_name, $email, $_POST['obsoleted']); variable 125 …$revision = $patchTracker->attach($bug_id, 'patch', $patch_name, $auth_user->email, $_POST['obsole… variable 139 …$site_url}{$basedir}/patch-display.php?bug={$bug_id}&patch={$patch_name_url}&revision={$revision}"; 145 Revision: {$revision}
|
/web-bugs/sql/ |
H A D | schema.sql | 49 revision int(8) NOT NULL, field 52 PRIMARY KEY (bugdb_id,patch,revision,obsolete_patch,obsolete_revision) 58 revision int(8) NOT NULL, field 60 PRIMARY KEY (bugdb_id,patch,revision)
|
Completed in 10 milliseconds