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

Re: Locks...

From: BRM <bm_witness_at_yahoo.com>
Date: Fri, 19 Dec 2008 11:14:33 -0800 (PST)

Sorry for top post - Yahoo! mail doesn't make inline posts easy...

Background: I am working through a transition from CVS to SVN. The first part of the transition was making a direct cutover branch. (We couldn't use cvs2svn due to our Attic files.) Now, I'm working through the second part of the transition and reorganizing the code into a better set of modules. (It was pretty poorly thrown together under CVS, with directories cross-referenced for sources files all over the place. Now everything will be self-contained with marked releases.) I still have to keep the cut-over branch building as is - so no moving files, and people may change things so I can't peg it to a revision either. Once I'm done, it'll be locked to read-only via permissions on the server-side.

I am using the SVN/TSVN Copy command to do the moves. I can' tuse SVN/TSVN Move because I have to keep existing builds working through the transition. (I'd break stuff, but then I'd have people yelling at me about it.)

I am aware of the Keep Locks and am using it. That's not a problem.

What I want to do, is be able to pull up a dialog listing all the locked/unlocked files so I can kind of see what I've yet to do or missed.

My primary concern is (a) missing something, and (b) people editing files I've moved. I am looking at getting a hook script in place on our server so I can find out when/if people break my locks.

I'm not seeing the 'lock' icon. I do have TCVS installed, perhaps that is the problem?

Ben

----- Original Message ----

From: Ian Anderson <i.tsvn_at_operation-sensory-overload.com>
To: dev_at_tortoisesvn.tigris.org
Sent: Friday, December 19, 2008 2:01:22 PM
Subject: Re: Locks...

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].

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

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-19 20:14:40 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.