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

Re: SVN Update Misc

From: Gary Feldman <g1list_1a_at_marsdome.com>
Date: 2004-11-12 04:10:59 CET

Leeuw van der, Tim wrote:

> Wouldn't it be handy for use in shell-scripts, if the command-line executable would indicate this in it's return-value?
>
> Something like:
>
> 0 - successful update, no conflicts
> 1 - successful update, but with conflicts
> 2 - error during update

There are more possible results than that. Two that I can think of are:

a) Update successful, but nothing changed. I use this for third party
products that are in the build tree, but rarely change, and hence the
(expensive) configure and make steps can be skipped.

b) Update successful, with merges but no conflicts. This is important
to know for manual review. (Personally, I think that automatic merges
must always be reviewed manually, because of the possibility of semantic
conflicts, or even redundant changes that are benign but really should
be removed.)

Also, there are times when all I really want is a summary. Currently I
have a script that squirrels away the output, and then calculates the
summary (number of files added, deleted, updated, merged, conflicts, other).

Gary

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 12 04:11:23 2004

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.