[open-ils-commits] [GIT] Evergreen ILS branch master updated. c37de5d02a8144e616312fd67d3d24e4f96701de

Evergreen Git git at git.evergreen-ils.org
Sat May 14 15:35:36 EDT 2011


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 "Evergreen ILS".

The branch, master has been updated
       via  c37de5d02a8144e616312fd67d3d24e4f96701de (commit)
      from  473bc4784377977cc16a4f61cd8961be0ffe40df (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 -----------------------------------------------------------------
commit c37de5d02a8144e616312fd67d3d24e4f96701de
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Sat May 14 16:19:36 2011 -0400

    remove references to SVN now that we're using Git
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/external/prune_dirs.sh b/Open-ILS/xul/staff_client/external/prune_dirs.sh
index 266c0d8..2e59cf8 100755
--- a/Open-ILS/xul/staff_client/external/prune_dirs.sh
+++ b/Open-ILS/xul/staff_client/external/prune_dirs.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 find $1 -type d -name CVS -exec rm -rf {} \; 2> /dev/null
 find $1 -type d -name .svn -exec rm -rf {} \; 2> /dev/null
+find $1 -type d -name .git -exec rm -rf {} \; 2> /dev/null
 find $1 -type d -name OPEN_ILS_STAFF_CLIENT -exec rm -rf {} \; 2> /dev/null
 exit 0
diff --git a/README b/README
index d1f4a3d..16c7701 100644
--- a/README
+++ b/README
@@ -52,7 +52,7 @@ Configuration and compilation instructions:
 
 For the time being, we are still installing everything in the `/openils/`
 directory. If you are working with a version of Evergreen taken directly
-from the Subversion repository, rather than a packaged version of Evergreen,
+from the Git repository, rather than a packaged version of Evergreen,
 first see `Developer instructions` below.
 
 Otherwise, issue the following commands to configure and build Evergreen:
@@ -211,7 +211,7 @@ Evergreen administrator account to your requested values.
 Developer instructions:
 -----------------------
 
-Developers working directly with the source code from the Subversion
+Developers working directly with the source code from the Git
 repository will also need to install some extra packages and perform
 one more step before they can proceed with the `./configure` step.
 
diff --git a/build/tools/update.sh b/build/tools/update.sh
index 8b275c1..75f1f65 100755
--- a/build/tools/update.sh
+++ b/build/tools/update.sh
@@ -5,19 +5,14 @@
 # 
 # Based on initial version by Bill Erickson.
 
-function svn_or_git {
+function fetch_changes {
     echo -en "###########\nUpdating source directory:" `pwd` "\n";
     if [ -d "./.git" ]; then
-        if [ -d "./.git/svn/trunk" ]; then
-            git svn fetch;
-            # git svn rebase origin || die_msg "git svn rebase origin failed";
-        else
-            git fetch;
-            # git rebase origin || die_msg "git rebase origin failed";
-        fi
+        git fetch;
+        # git rebase origin || die_msg "git rebase origin failed";
     else
-        echo "Remember to run svn update as needed";
-        # svn update || die_msg "svn update failed";
+        echo "You don't appear to be using Git yet, please fix that"
+        exit 1;
     fi
 }
 
@@ -60,7 +55,7 @@ and error-prone tasks associated with an upgrade for a developer.
 Considerations:
  * Run as opensrf user
  * opensrf needs sudo 
- * Assumes opensrf has OpenILS and OpenSRF repositories as svn or git-svn 
+ * Assumes opensrf has OpenILS and OpenSRF repositories as Git
    checkouts and both have been configured (as in ./configure) 
   
 END_OF_USAGE
@@ -110,7 +105,7 @@ JSDIR="$INSTALL/lib/javascript";    # only used for FULL install
 [ ! -d "$OSRF"    ]   && die_msg "OpenSRF Source Directory '$OSRF' does not exist!";
 which sudo >/dev/null || die_msg "sudo not installed (or in PATH)";
 
-[ -d "${ILS}/.svn" ] || [ -d "${ILS}/.git" ] || [ -d ${ILS}/.bzr ] || die_msg "Evergreen Source Directory '$ILS' is not a SVN, bzr or git repo";
+[ -d "${ILS}/.git" ] || [ -d ${ILS}/.bzr ] || die_msg "Evergreen Source Directory '$ILS' is not a SVN, bzr or git repo";
 
 if [ ! -z "$OPT_TEST" ] ; then
     feedback;
@@ -140,8 +135,8 @@ $INSTALL/bin/osrf_ctl.sh -l -a stop_all;
 # OpenSRF perl directory is not shared.  update the drone
 # ssh 10.5.0.202 "./update_osrf_perl.sh";
 
-cd $OSRF; svn_or_git;
-cd $ILS;  svn_or_git;
+cd $OSRF; fetch_changes;
+cd $ILS;  fetch_changes;
 
 if [ -n "$OPT_CLEAN" ]; then
     cd $OSRF && make clean;
diff --git a/build/tools/update_git_svn.sh b/build/tools/update_git_svn.sh
deleted file mode 100755
index ac50e71..0000000
--- a/build/tools/update_git_svn.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-#
-# Author: Joe Atzberger
-#
-# This script will update your git-svn repository from the 
-# SVN source repo and push to a github remote (if one exists).
-#
-# The design is (somewhat) suitable for cronjob because it:
-#   ~ only updates the local "master" branch
-#   ~ dies if it cannot switch to "master"
-#   ~ switches back to whatever branch was current initially
-#
-# However, it will fail if you cannot switch branches, (i.e. 
-# have a lot of uncommited changes).  
-#
-# WARNING: you should NOT run this in crontab on a repo you
-# are actively developing since switching branches (even
-# momentarily) in the middle of editing or runtime could
-# seriously confuse any developer.  Instead, just run it 
-# manually as needed.
-#
-# Workflow might look like:
-#   git checkout -b my_feature
-#   [ edit, edit, edit ]
-#   git commit -a
-#   ./build/tools/update_git_svn.sh
-#   git rebase master
-#   git push github my_feature
-#
-
-function die_msg {
-    echo "ERROR at $1" >&2;
-    exit;
-}
-function parse_git_branch {
-    ref=$(git-symbolic-ref HEAD 2> /dev/null) || return;
-    ref=${ref#refs/heads/};
-    # echo "REF2: $ref";
-}
-
-
-parse_git_branch;
-BRANCH=$ref;
-
-echo "Current branch: $BRANCH";
-
-git svn fetch  || die_msg 'git svn fetch';
-# git status     || die_msg 'git status';
-git checkout master  || die_msg 'git checkout master';
-
-MESSAGE='';
-git svn rebase  || MESSAGE="ERROR at git svn rebase;  ";
-git checkout $BRANCH  || die_msg "${MESSAGE}git checkout $BRANCH";
-git push github master;
-

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/external/prune_dirs.sh |    1 +
 README                                           |    4 +-
 build/tools/update.sh                            |   23 ++++------
 build/tools/update_git_svn.sh                    |   55 ----------------------
 4 files changed, 12 insertions(+), 71 deletions(-)
 delete mode 100755 build/tools/update_git_svn.sh


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list