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

Re: Doubts

From: Ron Wilson <ronw.mrmx_at_gmail.com>
Date: Thu, 21 Jul 2011 13:14:31 -0400

On Thu, Jul 21, 2011 at 8:57 AM, Viviane Guerra
<viviane_guerra_at_hotmail.com>wrote:

> I wanna create a script or any other configuration to do the follow
> steps:
> - when user open a file, set is as Locked at the subversion repository in
> server
> - when user close a file, commit it and set the file as released (unlock).
>
> Is it possible, since we have commands of each one commands?
>

Whether you can do this depends on your IDE.My current IDE (at work) is
SlickEdit. It does not provide for running a user specified command when
opening or saving a file.

However, I can give you an example script. I don't recall off hand the
commands for launching the carious TortoiseSVN dialogs from a script, but it
is possible.

But, using the Subversion command line client, a possible script to do what
you want would be:

svn lock %1%
notepad %1%
svn commit %1%

However, as someone else said, you don't really need to lock (most types
of) files before editing them. Subversion is designed to be able to manage
merging of changes from multiple developpers editing the same file.

Caveat: Certain types of files either can not be merged, or require
specialized tools for merging. Files that typically can not be merged are
pictures or other graphics. File types that require specialized tools
include Word documents.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-07-21 19:14:39 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.