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

List:       kde-commits
Subject:    [repo-management] bin: Update db info in commit mappings
From:       Jeff Mitchell <mitchell () kde ! org>
Date:       2013-04-27 20:08:41
Message-ID: 20130427200841.46354A603F () git ! kde ! org
[Download RAW message or body]

Git commit 8dc0761da492c73f69e26aedb08480de81b7d314 by Jeff Mitchell.
Committed on 27/04/2013 at 22:08.
Pushed by mitchell into branch 'master'.

Update db info in commit mappings

M  +2    -2    bin/handle_commit_mappings.rb

http://commits.kde.org/repo-management/8dc0761da492c73f69e26aedb08480de81b7d314

diff --git a/bin/handle_commit_mappings.rb b/bin/handle_commit_mappings.rb
index b524e86..555f23a 100755
--- a/bin/handle_commit_mappings.rb
+++ b/bin/handle_commit_mappings.rb
@@ -37,7 +37,7 @@ helpers do
     # Set up Postgres connection for Redmine. Read in password from a non-public file.
     if not $pg
       require 'pg'
-      $pg = PGconn.connect("projects.kde.org", 5432, '', '', "redmine", $postgresuser, $postgrespass)
+      $pg = PGconn.connect("127.0.0.1", 5432, '', '', "chiliproject", $postgresuser, $postgrespass)
     end
     # Every git repository should have a kde-repo-uid file that has a value computed from a hash
     # of its path. In addition, there may be a kde-repo-nick file containing a more friendly name.
@@ -82,7 +82,7 @@ helpers do
     begin
         res = $pg.exec(execstring)
     rescue PGError
-        $pg = PGconn.connect("projects.kde.org", 5432, '', '', "redmine", $postgresuser, $postgrespass)
+        $pg = PGconn.connect("127.0.0.1", 5432, '', '', "chiliproject", $postgresuser, $postgrespass)
         res = $pg.exec(execstring)
     end
     # TODO: Not sure that this will properly handle finding the *right* repository with a clone...
[prev in list] [next in list] [prev in thread] [next in thread] 

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