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

Re: Locks...

From: Ian Anderson <i.tsvn_at_operation-sensory-overload.com>
Date: Fri, 19 Dec 2008 14:01:22 -0500

BRM wrote:
> I've got a tree that I am locking down as I move things around.
> Eventually I'll have locked everything, but in the mean time I'm only
> locking parts.
>
> By "locking down" I am referring to SVN's "Lock" feature. I know this
> isn't a typical use case for such a feature, but it's the only way I
> can have at least some deterent against checking in over things that
> have already been moved. (I know the lock can be broken, so it's not
> full proof. But it works well enough for now.)
>
> To avoid the "Lose lock on commit", I am using a "special" working
> copy where I am only doing two things: (1) acquiring locks, and (2)
> updating it to keep in sync with the latest versions.
>
> My question, though, is this: is there a way to see which files I
> have locked and which files I have not? I've noticed that TSVN
> doesn't change the icons for locked files at all, so it makes it
> harder to tell. Is there an easy way to get to a list of all locked
> files in a working copy (or all unlocked files) from within TSVN? Or
> do I need to rely on the SVN command-line to do this?
>
> Thanks,
>
> Ben

With the default icon set, when you open a working copy in Explorer,
locked files should appear with a lock overlay icon. The lock icon does
not appear on folders since folders can't be locked.

If you wish to avoid losing locks on commit, there is a "Keep Locks"
checkbox in the Commit dialog which prevents locks from being released
when committing.

I think more importantly however, you should explain what you're trying
to do. If you're moving parts of your tree around, why are you not just
using the Subversion / TortoiseSVN Move command? Why try to use locks to
do something they're not designed for?

Ian

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=987716

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-19 19:57:46 CET

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

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