On 29.09.2005, at 18:37, Craig S. Cottingham wrote:
> On Sep 29, 2005, at 11:05, David Jackman wrote:
>> I was of the presumption that (at least with CVS) when you do a
>> tag it tags the version of each file that are present on your
>> machine, regardless of what the latest version is on the SCM
>> server. I don't know for sure if the SCM plugin command is doing
>> it this way (since it is possible to have it tag the latest
>> version without regard for what's present locally), but I can't
>> imagine why it wouldn't.
>>
>> -----Original Message-----
>> From: Michael Böckling [mailto:Michael.Boeckling@giniality.com]
>> Sent: Thursday, September 29, 2005 9:46 AM
>> To: users@maven.apache.org
>> Subject: SCM Tagging / Releasing
>>
>> I'd like to know whether tagging with SCM is problematic with
>> concurrent access. Say, I want to make a release, and while SCM is
>> running and does its job, some developer commits a patch to the
>> repository. What happens?
>> Do I get an inconsistent state, or is that impossible (be it with
>> CVS or SVN)?
>> This information is quite important for me, and I thank everyone
>> in advance who knows something.
>>
>
> With SVN, at least, commits are atomic, so it's not possible [1]
> for the repository to end up in an inconsistent state. The worst
> that should happen is that the commit fails and you have to try again.
>
> This is one of the reasons I've switched from CVS to SVN.
>
> [1] Never say never. However, if your SVN repository ends up in an
> inconsistent state, you have problems bigger than someone else
> committing while you're tagging a release.
svn help copy
copy (cp): Duplicate something in working copy or repository,
remembering history.
usage: copy SRC DST
SRC and DST can each be either a working copy (WC) path or URL:
WC -> WC: copy and schedule for addition (with history)
WC -> URL: immediately commit a copy of WC to URL
URL -> WC: check out URL into WC, schedule for addition
URL -> URL: complete server-side copy; used to branch & tag
With SVN, you use copy to tag stuff (just make a copy to the tags
directory). If you chose the WC -> URL variant, you tag the contents
of you working copy, which I assume is what you want. With URL ->
URL, you'd have to make sure noone commits right before you tag,
cause then you'd tag his version.
Inconsistencies should not be possible at all using SVN.
Cheers,
-Ralph.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
|