Skip to content

Commit db6c7df

Browse files
bright-toolsdregad
authored andcommitted
Ensure that pathrev is set in ViewVC links
This ensures that links work even after the files are deleted or moved Fixes #273 (cherry picked from commit 2495ce0)
1 parent 507fe64 commit db6c7df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SourceViewVC/SourceViewVC.php

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public function url_file( $p_repo, $p_changeset, $p_file ) {
113113

114114
$t_opts = array();
115115
$t_opts['revision'] = $t_revision;
116+
$t_opts['pathrev'] = $t_revision;
116117

117118
if( !$t_use_checkout )
118119
{
@@ -130,6 +131,7 @@ public function url_diff( $p_repo, $p_changeset, $p_file ) {
130131
$t_opts = array();
131132
$t_opts['r1'] = $p_changeset->revision;
132133
$t_opts['r2'] = $p_changeset->revision - 1;
134+
$t_opts['pathrev'] = $p_changeset->revision;
133135

134136
return $this->url_base( $p_repo, $p_file->filename, $t_opts );
135137
}

0 commit comments

Comments
 (0)