Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/roll_autogen.sh

Issue 320443002: remove GM result-grooming tools that use skia-autogen (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/rebaseline.py ('k') | tools/verify_images_for_gm_results.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/roll_autogen.sh
diff --git a/tools/roll_autogen.sh b/tools/roll_autogen.sh
deleted file mode 100755
index 2567a1307faebb913c88d3d71d61b8410dfb4444..0000000000000000000000000000000000000000
--- a/tools/roll_autogen.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#/bin/bash
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# roll_autogen.sh: Helper script for removing old revisions from an svn
-# repository. Unfortunately, the only way to discard old revisions is to clone
-# the repository locally, use svnadmin to dump a range of commits from the local
-# copy, re-import them into a brand-new repository, "reset" the original repo,
-# and then import the commits from the new repository into the original. This
-# script automates all of that except for resetting the original repository.
-
-REPO=${REPO:-"https://skia-autogen.googlecode.com"}
-REVS_TO_KEEP=${REVS_TO_KEEP:-50}
-REPO_SVN="${REPO}/svn"
-CLONE_DIR="local_clone_dir"
-LOCAL_CLONE="$(pwd)/${CLONE_DIR}"
-
-echo "Creating local repository in ${LOCAL_CLONE}"
-svnadmin create ${LOCAL_CLONE}
-pushd ${LOCAL_CLONE}/hooks > /dev/null
-echo "#!/bin/sh" > pre-revprop-change
-chmod 755 pre-revprop-change
-popd > /dev/null
-
-# Determine the latest revision. Note that any revisions committed while we
-# were syncing will be lost forever!
-END=`svn info ${REPO_SVN} | grep Revision | cut -c11-`
-START=$((END-REVS_TO_KEEP))
-DUMPFILE="skia-autogen_r${START}-${END}.dump"
-
-echo "Cloning ${REPO_SVN} into ${LOCAL_CLONE}..."
-svnsync init file://${LOCAL_CLONE} ${REPO_SVN}
-svnsync --non-interactive sync file://${LOCAL_CLONE}
-
-echo "Dumping revisions ${START} to ${END} to ${DUMPFILE}."
-svnadmin dump --revision ${START}:${END} ${LOCAL_CLONE} > ${DUMPFILE}
-
-echo "Removing temporary local clone."
-rm -rf ${LOCAL_CLONE}
-
-echo "Re-creating local clone from ${DUMPFILE}."
-svnadmin create ${LOCAL_CLONE}
-svnadmin load ${LOCAL_CLONE} < ${DUMPFILE}
-
-echo "Deleting ${DUMPFILE}"
-rm ${DUMPFILE}
-
-echo "Now you need to reset the remote repository. Typically, a link to do this"
-echo "can be found at (${REPO}/adminSource).
-echo "Please do so and press any key to continue."
-read -n 1 -s
-
-echo "Syncing ${LOCAL_CLONE} to ${REPO_SVN}."
-svnsync init ${REPO_SVN} file://${LOCAL_CLONE}
-svnsync sync ${REPO_SVN}
-
-echo "Removing temporary local clone."
-rm -rf ${LOCAL_CLONE}
-
-echo "Removing local checkout."
-rm -rf ${CHECKOUT_DIR}
-
-echo "Finished!"
« no previous file with comments | « tools/rebaseline.py ('k') | tools/verify_images_for_gm_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698