[dev] Deleted files patch for chora
Jason Rust
jrust at rustyparts.com
Wed Nov 5 15:23:59 PST 2003
Since svn will likely never support listing deleted files in a
repository I've attached a patch which takes away the show deleted files
link in chora (when using svn).
-Jason
-------------- next part --------------
Index: cvs.php
===================================================================
RCS file: /repository/chora/cvs.php,v
retrieving revision 1.164
diff -u -r1.164 cvs.php
--- cvs.php 14 Oct 2003 19:01:48 -0000 1.164
+++ cvs.php 5 Nov 2003 23:15:55 -0000
@@ -32,10 +32,15 @@
$title = sprintf(_("Source Directory of /%s"), Text::htmlallSpaces($where));
}
- if ($acts['sa']) {
- $extraLink='<a href="' . Chora::url('cvs', $where, array('sa' => 0)) . '">' . _("Hide Deleted Files") . '</a>';
+ if (is_a($VC, 'VC_svn')) {
+ // Showing deleted files is not supported in svn
+ $extraLink = '';
} else {
- $extraLink='<a href="' . Chora::url('cvs', $where, array('sa' => 1)) . '">' . _("Show Deleted Files") . '</a>';
+ if ($acts['sa']) {
+ $extraLink='<a href="' . Chora::url('cvs', $where, array('sa' => 0)) . '">' . _("Hide Deleted Files") . '</a>';
+ } else {
+ $extraLink='<a href="' . Chora::url('cvs', $where, array('sa' => 1)) . '">' . _("Show Deleted Files") . '</a>';
+ }
}
require CHORA_TEMPLATES . '/common-header.inc';
More information about the dev
mailing list