[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Know before downloading trunk how many files I'm going to download.

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 16 Oct 2008 12:50:26 -0400

How about something like this:

svn diff -r<prevBuildRev>:HEAD <repositoryURL> | grep "^Index:" | wc -l

Where:
    <prevBuildRev> was the Subversion revision of the last build.
    <repositoryURL> is the URL of the repository

That will give you the number of files that were changed between the
last build and the current one.

You can also try the --dry-run flag:

   $ svn --dry-run update

See if that works.

--
David Weintraub
qazwart_at_gmail.com
On Wed, Oct 15, 2008 at 5:02 AM, Luca Bonora <bonora.luca_at_gmail.com> wrote:
> Hi all. I have a question for you. I'm creating a collection of scripts that
> use zenity and I need to know how many files I'm going to download with
> checkout before I effectively do the checkout. For now, I found a little
> hack that use svn list , like this:
> svn list -v -R [URL] | wc -l
> But it's quite slow.
> Is there any command I can use instead of that hack?
>
> Thank you very much!
> Greetings,
>
> Luca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-16 18:50:53 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.