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

Re: [PATCH] make svnmucc consistently overwrite copy targets

From: Philip Martin <philip_at_codematters.co.uk>
Date: Thu, 06 Nov 2008 23:03:16 +0000

kmradke_at_rockwellcollins.com writes:

> Problem is, you have to handle a whole bunch of corner conditions
> because the check and action are no longer atomic. I.E. it could
> exist, you try and delete it, but someone already beat you to
> it, but then you just try and cp it, but someone beat you to
> it and copied something else, so then you try again, etc.

Your script can loop, trying one command and if that fails try the
other.

Take your example of "moving a tag". If I try to move a tag and it
does not exist I probably mistyped the tag name, so the command should
fail rather than create the wrong tag. If I try to create a tag that
already exists I probably mistyped the tag name, so the command should
fail rather than overwrite the tag. How often do you move or create a
tag and not know whether or not it exists? If other people are
creating/removing tags that conflict with yours do you really want to
overwrite them?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-07 00:03:52 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.