Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A9C1879E for ; Mon, 1 Feb 2016 18:01:33 +0000 (UTC) Received: (qmail 44051 invoked by uid 500); 1 Feb 2016 18:00:59 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 43974 invoked by uid 500); 1 Feb 2016 18:00:59 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 43734 invoked by uid 99); 1 Feb 2016 18:00:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 18:00:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 38DFAE0994; Mon, 1 Feb 2016 18:00:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: heneveld@apache.org To: commits@brooklyn.apache.org Date: Mon, 01 Feb 2016 18:01:05 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [07/50] [abbrv] brooklyn-client git commit: use `comm` instead of ruby script, since we have exact file names (and now a huge number of them). use `comm` instead of ruby script, since we have exact file names (and now a huge number of them). Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/fa274794 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/fa274794 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/fa274794 Branch: refs/heads/master Commit: fa274794b999529d5834778520bfb0f8f8dcbf58 Parents: f29fd5e Author: Alex Heneveld Authored: Wed Dec 16 00:59:18 2015 +0000 Committer: Alex Heneveld Committed: Wed Dec 16 00:59:18 2015 +0000 ---------------------------------------------------------------------- 4-make-new-repos.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/fa274794/4-make-new-repos.sh ---------------------------------------------------------------------- diff --git a/4-make-new-repos.sh b/4-make-new-repos.sh index acaec27..9fb63cb 100755 --- a/4-make-new-repos.sh +++ b/4-make-new-repos.sh @@ -34,13 +34,15 @@ mkdir new-repos for x in $PROJS ; do new_repo brooklyn-$x - ( cd new-repos/${REPO_PREFIX}brooklyn-$x && git filter-branch --index-filter "git ls-files | ${basedir}/filter_whitelist.rb ${basedir}/common-whitelist.txt ${basedir}/$x-whitelist.full.gen.txt | xargs -0 git rm -q -r --cached --ignore-unmatch" --tag-name-filter cat --prune-empty master ${branches} ) + # use -0 and tr so files with spaces are passed as single words + # batch by 1000 to avoid xargs insufficient space error + ( cd new-repos/${REPO_PREFIX}brooklyn-$x && git filter-branch --index-filter "git ls-files | comm -23 - ${basedir}/$x-whitelist.full.gen.txt | tr '\n' '\0' | xargs -0 -n 1000 git rm -q -r --cached --ignore-unmatch" --tag-name-filter cat --prune-empty master ${branches} ) cleanup brooklyn-$x git rm .gitattributes .gitignore README.md NOTICE LICENSE git mv brooklyn-$x/{*,.??*} ./ done new_repo brooklyn -( cd new-repos/${REPO_PREFIX}brooklyn && git filter-branch --index-filter "git ls-files | ${basedir}/filter_whitelist.rb ${basedir}/common-whitelist.txt ${basedir}/brooklyn-uber-repo-whitelist.gen.txt | xargs -0 git rm -q -r --cached --ignore-unmatch" --tag-name-filter cat --prune-empty master ${branches} ) +( cd new-repos/${REPO_PREFIX}brooklyn && git filter-branch --index-filter "git ls-files | comm -23 - ${basedir}/brooklyn-uber-repo-whitelist.gen.txt | tr '\n' '\0' | xargs -0 -n 1000 git rm -q -r --cached --ignore-unmatch" --tag-name-filter cat --prune-empty master ${branches} ) cleanup brooklyn