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.
From: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
Sent: Wednesday, June 18, 2008 9:10 AM
Subject: Re: default of tag operation is HEAD revision of repository ?
Bernhard Merkle wrote:
> 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.
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