[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [repo-management] bin: Always use quickgit
From:       Jeff Mitchell <mitchell () kde ! org>
Date:       2015-04-11 3:07:02
Message-ID: E1Ygll8-0003cl-9I () scm ! kde ! org
[Download RAW message or body]

Git commit f9c3795e4ecc5a8102ef0a45446b5d679e04c287 by Jeff Mitchell.
Committed on 11/04/2015 at 03:08.
Pushed by mitchell into branch 'master'.

Always use quickgit

M  +10   -0    bin/handle_commit_mappings.rb

http://commits.kde.org/repo-management/f9c3795e4ecc5a8102ef0a45446b5d679e04c287

diff --git a/bin/handle_commit_mappings.rb b/bin/handle_commit_mappings.rb
index f82a86b..54524d5 100755
--- a/bin/handle_commit_mappings.rb
+++ b/bin/handle_commit_mappings.rb
@@ -34,6 +34,16 @@ enable :logging
 helpers do
 
   def findGitwebOrRedmineUrl(repoid, changeset)
+    # For now we are disabling Projects altogether (including its syncing) so *always* use quickgit
+    path = File.read("/home/git/repo-uid-mappings/#{repoid}").chomp
+    if not File.exists?("/repositories/#{path}")
+      logger.info( "Cannot find the repository specified by the UID" )
+      return nil
+    end
+    return "http://quickgit.kde.org/?p=#{path}&a=commit&h=#{changeset}"
+
+    # Original function follows...
+
     # Set up Postgres connection for Redmine. Read in password from a non-public file.
     if not $pg
       require 'pg'
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic