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

RE: Re: default of tag operation is HEAD revision of repository ?

From: Gleason, Todd <tgleason_at_impac.com>
Date: Wed, 18 Jun 2008 10:34:14 -0700

Cool as that sounds, it seems like a race condition. If you're expecting the HEAD to get tagged regardless of your WC, and you go ahead with the operation right as it changes to denote your working copy, it sounds like you get your working copy's version instead of HEAD.

-----Original Message-----
From: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
Sent: Wednesday, June 18, 2008 9:10 AM
To: users_at_tortoisesvn.tigris.org
Subject: Re: default of tag operation is HEAD revision of repository ?

Bernhard Merkle wrote:
> Hi,
>
> at the moment in TTSVN the _default_ when tagging/branching is to use
> the HEAD revision of the repository. Now IMO this can be a bit tricky
> or risky. Why is this the default ?
>
> I am usually tagging my local working copy so I think this would be
> the "better" default (at least for me :-)
>
> Anyway I can think of situations where I want to tag, and in the
> meantime someone else checks in a new revision on the server. I this
> case I am even tagging a wrong version ! so question:
>
> - why is tagging HEAD revision of repository the default in
> TortoiseSVN ? (risky)
> - could you supply an option to adapt the default (e.g. for personal
> user perferences)

In TSVN 1.5, the default is still HEAD. But while the dialog is up, a
separate thread is started which crawls the working copy to find the
highest 'last committed' revsion. Once that thread ended, the default
changes to "working copy" with that revision found.
For small to mid sized working copies, that is fast enough so you won't
even notice it and you would see the default always at "working copy",
not HEAD (faster than the dialog needs to repaint for the first time).
Only for bigger working copies, this will take a few seconds.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-06-18 19:35:10 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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