Starting to use the peg-revision system so we can actually travel back through time
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Apr 2007 00:49:15 +0000 (00:49 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Apr 2007 00:49:15 +0000 (00:49 +0000)
blame.php
browse.php
includes/class_revision.php
view.php

index 44644d9eac6ae90ea0bc0b18b395b3e27d8b8365..17f8f9a8ae85a5983dbd90c03be4f39dfad16f36 100644 (file)
--- 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)
 {
index f11617cd455756e4bf121f40cf68341dd0a4392d..00ccbebbd8405802f429d11ee2c067c70f0e007b 100644 (file)
@@ -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 = '';
index 4d2991505ba234b948e674272dc4f3da484987f4..7c63cb0f1a9e891f2dc98f3c8b33d4e9c9b4e709 100644 (file)
@@ -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']);
        }
 }
index b2aa13bebb64c89a75deab12832f804b1f674d0e..87852758b1e08ee225891cb38fd6725d1fec016a 100644 (file)
--- 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);
 
 // ###################################################################