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

svn up "dry-run"

From: Alex Bligh <alex_at_alex.org.uk>
Date: Thu, 26 May 2011 13:52:56 +0100

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?

-- 
Alex Bligh
Received on 2011-05-26 14:53:34 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.