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

--dry-run switch for svn update

From: malone <malone_at_fxhome.com>
Date: 2005-02-17 18:07:46 CET

Hello,

  I'm looking for a way to do a dry run of svn update, so I can see what
will be updated without it actually changing the files. Unfortunately
svn update doesn't support the --dry-run switch. I've looked through the
archives and seen a couple of workarounds suggested. The first was

svn status -u

  This shows what files will be changed but doesn't show conflicts. The
other option seems to be

svn merge --revision BASE:HEAD --dry-run .

  This works great, but only if all the files in the working copy have
the same BASE revision. svn update calculates the BASE and HEAD
revisions on a per file basis, but svn merge will use the same BASE and
HEAD revision for every file. This means they will work differently on a
working copy that has files with differing revisions.

  I personally think it would make sense to add a --dry-run switch to
update, but I would welcome any other suggestions.

Thanks

Malone

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 17 18:41:23 2005

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.