/[pcsx2_0.9.7]/auto_branch_latest_upstream.sh
ViewVC logotype

Diff of /auto_branch_latest_upstream.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- auto_branch_latest_upstream.sh	2010/09/10 11:04:39	129
+++ auto_branch_latest_upstream.sh	2010/09/10 11:49:09	130
@@ -12,9 +12,11 @@
 export current_local_revision=`cat "$BRANCH_LOCATION/$BRANCH_NAME/local_repository_revision.txt"`
 
 if [ "$OVERRIDE_UPDATE_NEEDED_CHECK" != "1" ] ; then
-        if [ "$current_downstream_revision" == "$PCSX2_REVISION" && "$current_local_revision" == "$PCSX2_REVISION_LOCAL" ] ; then
+        if [ "$current_downstream_revision" == "$PCSX2_REVISION" && "$current_local_revision" -lt "$PCSX2_REVISION_LOCAL" ] ; then
                 echo "UPSTREAM REVISION: $PCSX2_REVISION"
                 echo "DOWNSTREAM REVISION: $current_downstream_revision"
+                echo "LOCAL REVISION: $current_local_revision"
+                echo "LOCAL COMMITTED REVISION: $PCSX2_REVISION_LOCAL"
                 echo
                 echo -e "\\tThere is no need to update the local repository. reason: upstream repository has not been updated."
                 echo
@@ -23,9 +25,11 @@
                 exit 0
         fi
 else
-        if [ "$current_downstream_revision" == "$PCSX2_REVISION" && "$current_local_revision" == "$PCSX2_REVISION_LOCAL" ] ; then
+        if [ "$current_downstream_revision" == "$PCSX2_REVISION" && "$current_local_revision" -lt "$PCSX2_REVISION_LOCAL" ] ; then
                 echo "UPSTREAM REVISION: $PCSX2_REVISION"
                 echo "DOWNSTREAM REVISION: $current_downstream_revision"
+                echo "LOCAL REVISION: $current_local_revision"
+                echo "LOCAL COMMITTED REVISION: $PCSX2_REVISION_LOCAL"
                 echo
                 echo -e "\\tThere is no need to update the local repository. reason: upstream repository has not been updated."
                 echo

 

  ViewVC Help
Powered by ViewVC 1.1.22