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

RE: anticipate conflicts with --dry-run in script

From: DW Dennis Wheeler <dwheeler_at_ag.com>
Date: Mon, 12 Jan 2009 17:33:42 -0800

svn merge --dry-run .... | grep ^C

> -----Original Message-----
> From: Jack Bates [mailto:ms419_at_freezone.co.uk]
> Sent: Monday, January 12, 2009 1:51 PM
> To: users_at_subversion.tigris.org
> Subject: anticipate conflicts with --dry-run in script
>
> I have a couple scripts which run "svn merge" periodically,
> for example:
> http://code.google.com/p/qubit-toolkit/source/browse/trunk/sym
> fony/cron.daily/drop
>
> I run "svn merge --dry-run" first, to exit and make no
> changes to the working copy if "svn merge" would introduce
> conflicts. But I am having trouble detecting whether it
> anticipates conflicts because "svn merge --dry-run" exits
> with status zero whether or not it anticipates conflicts.
>
> How can I get my script to exit if "svn merge --dry-run"
> anticipates conflicts?
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&
> dsMessageId=1020281
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1020660

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-13 02:36:25 CET

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.