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

Re: svn up "dry-run"

From: Stephen Butler <sbutler_at_elego.de>
Date: Thu, 26 May 2011 15:06:45 +0200

On May 26, 2011, at 14:52 , Alex Bligh wrote:

> I have a working copy with directories d1..dX in, and a repository to which
> directories occasionally get added, say d1..dY where Y>X (though the
> directory names are not numerical).
>
>> From the working copy, is there any way of telling what directories are
> missing on that working copy? I don't want to do an "svn up", because I
> don't want to lose the current state of d1..dX. I can't do "svn up dY"
> because I don't (yet) know the name(s) of the missing directory/directories
> dY.
>
> What would be perfect is "svn up --dry-run", producing identical output
> to svn up, but not actually doing anything. I could then parse the output
> of that. However, that command doesn't' actually exist.
>
> I suppose I could parse the output of "svn diff -r HEAD" but that
> seems pretty expensive given it's diffing millions of files and
> I only really want the current directory (not subdirectories).
>
> Any ideas?

Have you tried the following?

   svn status --show-updates --depth immediates

It tells you the names of the incoming items that an update would add
to the current working copy directory (as well as items that would be
modified).

Steve

--
Stephen Butler | Senior Consultant
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
tel: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
Received on 2011-05-26 15:07:26 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.