Whamcloud - gitweb
Some racy problems happened when sanity-quota.sh run on buffalo.
[fs/lustre-release.git] / build / replace2.sh
index 71a03fd..17d10ea 100755 (executable)
@@ -9,7 +9,7 @@ fi
 
 . .mergeinfo
 
-if [ "$OPERATION" -ne "Replace" ] ; then
+if [ "$OPERATION" != "Replace" ] ; then
     echo "OPERATION must be Replace - is $OPERATION"
     echo "You should probably be running ${OPERATION}2.sh"
     exit
@@ -25,11 +25,11 @@ cvs update $dir 2>&1 | grep "^M" && echo "uncommitted changes" && exit 1
 
 # Tag parent
 echo -n "Tagging as ${CHILD}_REPLACED_${PARENT}_$date ..."
-$CVS tag -F ${CHILD}_REPLACED_${PARENT}_$date $dir
+$CVS rtag -r $parent ${CHILD}_REPLACED_${PARENT}_$date $module
 echo "done"
 # In case someone tries to re-land later
 echo -n "Tagging as ${CHILD}_BASE ..."
-$CVS tag -F ${CHILD}_BASE $dir
+$CVS rtag -F -r $parent ${CHILD}_BASE $module
 
 echo "saving .mergeinfo as .mergeinfo-$date"
 mv .mergeinfo .mergeinfo-$date