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

[TSVN] TSVNCache and renaming .svn/entries

From: Alexander Kitaev <alex_at_tmate.org>
Date: 2005-09-19 18:25:35 CEST

Hello All,

I'm working on the pure Java Subversion client library (JavaSVN). Recently
one of the users reported an exception that states that JavaSVN was not able
to rename .svn/tmp/entries to .svn/entries.

This rename operation is performed every time "entries" file is saved and
same approach with temorary file is used in the command line Subversion
client. First contents is saved to .svn/tmp/entries and then
.svn/tmp/entries is atomically renamed to .svn/entries. AFAIU, this may fail
in case .svn/entries is locked by some other program that reads from that
file or writes to it.

User reported that he runs TortoiseSVN and has TSVNCache.exe program running
and I think that ot could lock "entries" file and thus prevent renaming.
User's application performs addition of several thousands files and problem
is hardly reproducable, but sometimes it appears. User's OS is Windows XP.

User's version of TSVN is 1.2.1, build 3895. The latest version available is
1.2.2, build 4295. What I would like to ask is whether upgrading to the
newer version could solve that problem or should I instead modify JavaSVN to
handle failed renames (i.e. wait for 100ms and try to rename the file
again)?

Thanks!

Alexander Kitaev,
TMate Software,
http://tmatesoft.com/
http://tmate.org/

> -----Original Message-----
> From: Stefan Kung [mailto:tortoisesvn@gmail.com]
> Sent: Monday, September 19, 2005 18:12
> To: dev@tortoisesvn.tigris.org
> Subject: Re: [TSVN] Feature Request: "Ask for Authentication
> Credentials" Checkbox in Commit Dialog
>
> Norbert Unterberg wrote:
>
> > Couldn't such a feature implemented by asking for
> username/password,
> > and then using the equivalent of the command line options
> --username
> > <user> --password <pass>?
>
> Yes, that's another option.
> But my points before still apply:
> - the UI would get cluttered with yet another checkbox
> - that auth data wouldn't be stored, even if the checkbox
> "save authentication data" is enabled. And that would confuse
> users more than it annoys some of you who use the same
> computer with multiple users.
>
> Stefan
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.tigris.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Sep 19 18:27:54 2005

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