From users-return-5516-daniel=haxx.se@subversion.apache.org Wed Oct 20 17:28:51 2010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on giant.haxx.se X-Spam-Level: X-Spam-Status: No, score=-1.5 required=3.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with SMTP id o9KFSolC020263 for ; Wed, 20 Oct 2010 17:28:50 +0200 Received: (qmail 91039 invoked by uid 500); 20 Oct 2010 15:28:41 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 91032 invoked by uid 99); 20 Oct 2010 15:28:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 15:28:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS Received-SPF: pass (athena.apache.org: local policy) Received: from [72.44.210.49] (HELO zcs-lm.jawa.com) (72.44.210.49) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 20 Oct 2010 15:28:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-lm.jawa.com (Postfix) with ESMTP id 5597B8014890; Wed, 20 Oct 2010 08:28:14 -0700 (MST) X-Virus-Scanned: amavisd-new at jawa.com Received: from zcs-lm.jawa.com ([127.0.0.1]) by localhost (zcs-lm.jawa.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gi76DpOQzFOv; Wed, 20 Oct 2010 08:28:14 -0700 (MST) Received: from zcs-mail.jawa.com (zcs-mail-02.jawa.com [10.7.3.32]) by zcs-lm.jawa.com (Postfix) with ESMTP id 3EAA38000516; Wed, 20 Oct 2010 08:28:14 -0700 (MST) Date: Wed, 20 Oct 2010 08:28:14 -0700 (MST) From: Geoff Hoffman To: Andrea Antonio Maleci Cc: users@subversion.apache.org Message-ID: <547936565.149085.1287588494188.JavaMail.root@zcs-mail-02.jawa.com> In-Reply-To: <3473746A3B3FE343B6C2641049DB56D01177AAF5DE@MAILER641.lan.w2k> Subject: Re: can I checkout only a revision files ? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [70.166.218.198] X-Mailer: Zimbra 6.0.4_GA_2038.RHEL5_64 (ZimbraWebClient - SAF3 (Win)/6.0.4_GA_2038.RHEL5_64) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Wed, 20 Oct 2010 17:28:51 +0200 (CEST) X-Friend: Nope > On Wed, Oct 20, 2010 at 09:17, Andrea Antonio Maleci > wrote: > Is it possible to checkout only files (not patch, but entire files) > from a specific revision ? > > From: Andy Levy [mailto:andy.levy@gmail.com] > Yes, use the --revision option for svn co. > > ---- "Andrea Antonio Maleci" wrote: > > It retrieves entire repository at specified revision, not only the > modified one... Right, As others have said, you cannot 'svn co' files, you can only checkout directories. The ability to export files exists, but to export only modified files is not built in, either. I've been trying to learn Bash scripting better and wrote the following. If you're on Windows, install Cygwin. It may not be exactly what you want, because it exports the files instead of checking them out. You have to do something like... svn log --verbose -r 2345 | grep M > files.txt ...then something like... (vi svncomod.sh) #!/bin/bash FILE=$1 REPO=$2 while read line do for ARG in $line; do F=${ARG} if [ "$F" != M ] then echo ${REPO}${F} svn export ${REPO}${F} fi done done < ${FILE} ... then... chmod +x svncomod.sh ...and finally... svncomod.sh files.txt http://path-to/repo