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

Re: Auto-lock with DOC, XLS

From: Kevin Greiner <greinerk_at_gmail.com>
Date: Fri, 5 Sep 2008 11:26:12 -0400

On Fri, Sep 5, 2008 at 9:57 AM, Andy Levy <andy.levy_at_gmail.com> wrote:

> On Fri, Sep 5, 2008 at 09:38, <marcos.martins_at_indt.org.br> wrote:
> > Hi,
> >
> > How can I auto-lock a file? Is there a solution??
>
> Set svn:needs-lock on the files. There is no "automatic" locking.
>

But you can automatically set svn:needs-lock when adding the file, which I
find very useful. Here are the relevant config lines.

[auto-props]
*.bin = svn:needs-lock;svn:mime-type=application/x-binary
*.png = svn:needs-lock;svn:mime-type=image/png
*.jpg = svn:needs-lock;svn:mime-type=image/jpeg
*.gif = svn:needs-lock;svn:mime-type=image/gif
*.tif = svn:needs-lock;svn:mime-type=image/tiff
*.doc = svn:needs-lock;svn:mime-type=application/msword
*.xls = svn:needs-lock;svn:mime-type=application/excel
Received on 2008-09-05 17:26:34 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.