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

.cs files get randomly locked

From: Tsahi Asher <tsahi_75_at_yahoo.com>
Date: 2007-12-18 12:12:44 CET

hi,
i have TSVN 1.4.5, with a remote SVN server, also version 1.4.5. my
 client machine is WinXP SP2.
the problem is that .cs (C#) files get randomly marked implicitly as
 needs-lock. i use the term "implicitly" because they don't really get
 the
 svn:needs-lock property, but they do get the gray V mark and their
 read-only bit is turned on. this makes it difficult to use TSVN.

as much as i could tell, the files getting marked like that are those
 that were modified before the last commit. after a modified file is
 committed, it gets marked as described above.

the [auto-props] section of my SVN config file (on the client machine)
 looks like this:
[auto-props]
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
# *.c = svn:eol-style=native
# *.cpp = svn:eol-style=native
# *.h = svn:eol-style=native
# *.dsp = svn:eol-style=CRLF
# *.dsw = svn:eol-style=CRLF
# *.sh = svn:eol-style=native;svn:executable
# *.txt = svn:eol-style=native
*.png = svn:mime-type=image/png
# *.jpg = svn:mime-type=image/jpeg
# Makefile = svn:eol-style=native
#*.cs = svn:needs-lock=no #any value means yes, no value means no.
*.ico = svn:mime-type=image/vnd.microsoft.icon
*.resx = svn:needs-lock=yes

i used to have "*.csproj = svn:needs-lock=yes" too, but i removed it a
 few days ago.

the workaround i found is to open the properties dialog for such a
 file, add a needs-lock property, and immediately remove it. then it
 gets
 green and the read-only bit is usually (but not always) turned off.

Tsahi

--
The day Micro$oft sells something that doesn't SUCK
is the day they start selling vacuum cleaners.
http://www.geocities.com/tsahi_75
      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Dec 18 12:13:26 2007

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.