From ff5719f8ffa2f7ec3007024a083a0b092fa9bf60 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 23 Apr 2007 00:49:15 +0000 Subject: [PATCH] Starting to use the peg-revision system so we can actually travel back through time --- blame.php | 4 ++-- browse.php | 2 +- includes/class_revision.php | 6 +++--- view.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blame.php b/blame.php index 44644d9..17f8f9a 100644 --- a/blame.php +++ b/blame.php @@ -34,11 +34,11 @@ $navbar = ConstructNavbar(); $revision = new Revision($input->in['repos'], $input->in['rev'], $input->in['path']); -$blame = BSXml::Parse($lib->run('blame --xml -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']), true)); +$blame = BSXml::Parse($lib->run('blame --xml -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']) . '@' . $revision->revision, true)); $blame = $blame['blame']['target']['entry']; BSXml::UnifyNode($blame); -$catdata = $lib->run('cat -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path'])); +$catdata = $lib->run('cat -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']) . '@' . $revision->revision); foreach ($catdata AS $num => $line) { diff --git a/browse.php b/browse.php index f11617c..00ccbeb 100644 --- a/browse.php +++ b/browse.php @@ -60,7 +60,7 @@ $proplist = FormatPropList($props); $revision->getRevisionInfo(); -$listing = BSXml::Parse($lib->run('ls --xml -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']), true)); +$listing = BSXml::Parse($lib->run('ls --xml -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']) . '@' . $revision->revision, true)); BSXml::UnifyNode($listing['lists']['list']['entry']); $nodes = ''; diff --git a/includes/class_revision.php b/includes/class_revision.php index 4d29915..7c63cb0 100644 --- a/includes/class_revision.php +++ b/includes/class_revision.php @@ -113,7 +113,7 @@ class Revision */ public function getPropsForPath($path) { - $output = BSRegister::Get('lib')->run('proplist -v -r' . $this->revision . ' ' . BSRegister::Get('lib')->arg($this->path . $path)); + $output = BSRegister::Get('lib')->run('proplist -v -r' . $this->revision . ' ' . BSRegister::Get('lib')->arg($this->path . $path) . '@' . $this->revision); unset($output[0]); $proplist = array(); @@ -140,7 +140,7 @@ class Revision */ public function getRevisionInfo() { - $xml = BSXml::Parse(BSRegister::Get('lib')->run('log --xml -v -r' . $this->revision . ' ' . BSRegister::Get('lib')->arg($this->path), true)); + $xml = BSXml::Parse(BSRegister::Get('lib')->run('log --xml -v -r' . $this->revision . ' ' . BSRegister::Get('lib')->arg($this->path) . '@' . $this->revision, true)); $this->message = FormatLogMessage($xml['log']['logentry']['msg']['value']); $this->messasgeClean = $xml['log']['logentry']['msg']['value']; $this->datetime = FormatSvnDate($xml['log']['logentry']['date']['value']); @@ -157,7 +157,7 @@ class Revision */ private function _fetchRevision($desired) { - $xml = BSXml::Parse(BSRegister::Get('lib')->run('info --xml ' . ($desired > 0 ? '-r' . intval($desired) . ' ' : '') . BSRegister::Get('lib')->arg($this->path . $this->subpath), true)); + $xml = BSXml::Parse(BSRegister::Get('lib')->run('info --xml ' . ($desired > 0 ? '-r' . intval($desired) . ' ' : '') . BSRegister::Get('lib')->arg($this->path . $this->subpath) . ($desired > 0 ? '@' . intval($desired) : ''), true)); $this->revision = intval($xml['info']['entry']['commit']['revision']); } } diff --git a/view.php b/view.php index b2aa13b..8785275 100644 --- a/view.php +++ b/view.php @@ -55,7 +55,7 @@ $link['log'] = ConstructLink('log', $input->in['repos'], $input->in['path'], 0); $revision->getRevisionInfo(); -$catdata = $lib->run('cat -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']), true); +$catdata = $lib->run('cat -r' . $revision->revision . ' ' . $lib->arg($repos->fetchPath($input->in['repos']) . $input->in['path']) . '@' . $revision->revision, true); // ################################################################### -- 2.43.5