This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.1 has been updated
via e4faee19d74c2eae9e7b323c83dd5495c4cb9df5 (commit)
via 316e8701f213c3f3b265eb4642d2575a9e659b6a (commit)
from 33e33d9fc21ccc6eef58c5de90525027e44084d0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=e4faee19d74c2eae9e7b323c83dd5495c4cb9df5
commit e4faee19d74c2eae9e7b323c83dd5495c4cb9df5
Author: Franck Villaume <[email protected]>
Date: Wed Feb 7 19:29:54 2018 +0100
scmhg: prepare support for Hg nightly snapshot & tarball
diff --git a/src/plugins/scmhg/common/HgPlugin.class.php
b/src/plugins/scmhg/common/HgPlugin.class.php
index 7cf83c0..96619d0 100644
--- a/src/plugins/scmhg/common/HgPlugin.class.php
+++ b/src/plugins/scmhg/common/HgPlugin.class.php
@@ -190,7 +190,12 @@ Offer DAV or SSH access.");
}
function getSnapshotPara($project) {
- return;
+ $b = '';
+ $filename =
$project->getUnixName().'-scm-latest.tar'.util_get_compressed_file_extension();
+ if
(file_exists(forge_get_config('scm_snapshots_path').'/'.$filename)) {
+ $b .= html_e('p', array(),
'['.util_make_link('/snapshots.php?group_id='.$project->getID(), _('Download
the nightly snapshot')).']');
+ }
+ return $b;
}
function getBrowserLinkBlock($project) {
@@ -460,19 +465,27 @@ Offer DAV or SSH access.");
}
$group_name = $project->getUnixName();
+ $snapshot =
forge_get_config('scm_snapshots_path').'/'.$group_name.'-scm-latest.tar'.util_get_compressed_file_extension();
$tarball =
forge_get_config('scm_tarballs_path').'/'.$group_name.'-scmroot.tar'.util_get_compressed_file_extension();
if (!$project->enableAnonSCM()) {
+ if (is_file($snapshot)) {
+ unlink($snapshot);
+ }
if (is_file($tarball)) {
unlink ($tarball) ;
}
return false;
}
+ // TODO: ideally we generate one snapshot per hg repository
$toprepo = forge_get_config('repos_path', 'scmhg');
- $repo = $toprepo . '/' . $project->getUnixName();
+ $repo = $toprepo . '/' . $project->getUnixName().
$project->getUnixName();
if (!is_dir($repo)) {
+ if (is_file($snapshot)) {
+ unlink($snapshot);
+ }
if (is_file($tarball)) {
unlink($tarball);
}
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=316e8701f213c3f3b265eb4642d2575a9e659b6a
commit 316e8701f213c3f3b265eb4642d2575a9e659b6a
Author: Franck Villaume <[email protected]>
Date: Wed Feb 7 19:29:16 2018 +0100
scmgit: remove useless code
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php
b/src/plugins/scmgit/common/GitPlugin.class.php
index bb1de71..4966b8b 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -871,10 +871,6 @@ control over it to the project's administrator.");
$snapshot =
forge_get_config('scm_snapshots_path').'/'.$group_name.'-scm-latest.tar'.util_get_compressed_file_extension();
$tarball =
forge_get_config('scm_tarballs_path').'/'.$group_name.'-scmroot.tar'.util_get_compressed_file_extension();
- if (!$project->usesPlugin($this->name)) {
- return false;
- }
-
if (!$project->enableAnonSCM()) {
if (is_file($snapshot)) {
unlink($snapshot);
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmgit/common/GitPlugin.class.php | 4 ----
src/plugins/scmhg/common/HgPlugin.class.php | 17 +++++++++++++++--
2 files changed, 15 insertions(+), 6 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits