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


Reply via email to