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

Re: Bug? On export of a file, the file is exported but not renamed/moved to the desired name/location.

From: Francois Grieu <fgrieu_at_gmail.com>
Date: Wed, 14 Apr 2010 10:59:25 +0200

On 12/04/2010 19:17, Stefan Küng wrote:
> On 12.04.2010 09:56, Francois Grieu wrote:
>> Hi,
>>
>> I'm trying to export a single source file of a former revision from a
>> project, to local directory C:\rrr\sss, and get:
>> Command: Export
>> Error: Can't move 'C:\rrr\tempfile.tmp' to 'C:\rrr\sss': Accès refusé.
>> Finished!:
>>
>> The error means "access denied". The target system is a French XP SP3,
>> with Tortoise SVN 1.67. Here is exactly what I'm doing:
>> - logged with full rights
>> - create directory C:\rrr and sub-directory C:\rrr\sss
>> - tortoiseSVN repo browser
>> - navigate in repository browser to
>> file:///S:/blah/blah_repo/trunk/sources [on a SMB share]
>
> Repository on an SMB share?
> I hope you run 'svnadmin verify' at least once a day and have a good
> backup.
I rely on dayly incremental backups (thanks to the structure of
repositories, these are reasonably efficient). That was useful once in
two years, for a dozen repos, totaling (only) a few thousands commits
with usage patterns that limits the risk of simultaneous update. I think
this one problem was a misguided attempt to undo a commit by messing
directly with the repo. The SMB server itself is a rock-solid,
ECC-everywhere workhorse with an ancient (>10 years old) server software
that we keep for it's excellent reliability and support of MacOS 9 (!)
clients. But I disgress.
>> - select line with file mysource.c
>> - right-click / show log
>> - select line with the revision I want (250)
>> - right-click / export; URL of repository is
>> file:///S:/blah/blah_repo/trunk/sources/mysource.c
>> - click on ... button for Export directory, navigate to C:\rrr\sss ,OK;
>> Export directory is C:\rrr\sss
>> - leave other defaults (Fully recursive, Revision 250), OK
>> - the export window opens, "Command: Export" shows immediately
>> - then a few seconds later "Error: Can't move 'C:\rrr\tempfile.tmp' to
>> 'C:\rrr\sss': Accès refusé."
>>
>> The file that I want has been exported from the repository into
>> C:\rrr\tempfile.tmp; I can rename it manually to mysource.c and move it
>> to C:\rrr\sss as C:\rrr\sss\mysource.c with no trouble.
>>
>> Am I missing something obvious or is this a bug?
>
> * make sure your virus scanner doesn't interfere and lock the temp file
> for scanning while svn tries to rename it
I think that I have ruled this out.

> * make sure the folder you created has full access rights for the user
> you're logged in as.
That's ruled out. These folders have just been created by the (single)
user with administrative rights. Also the export of a directory goes
smoothly.

> If you're on Vista/Win7, remove the 'inherit access
> rights' from the folders since the c: drive has reduces access rights
> and those have priority over the rights you set on the subfolders if
> that option is active.
Not applicable.

The problem is reproducible on different XP SP3 machines, on different
repos, whenever I select a file and version to restore as described. I
think it is a genuine bug and not related to my config (though I did not
try a clean install in a VM and/or a fresh local repo).
IMHO the error message
   Error: Can't move 'C:\rrr\tempfile.tmp' to 'C:\rrr\sss'
with the source a file and the destination an existing directory (the
Export Directory that I just selected) seems a strong indication of some
snafu with parsing the Export Directory when using the User Interface
that I describle.

The only two workarounds that I have found (while still using the
TortoiseSVN GUI) are
- export the directory containing the file (quite bearable, and the
dominant use case);
- manually rename and move the file after the failure.

   Francois Grieu

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-14 10:59: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.