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

Re: Issue report: subversion 1.7.2 windows command line client cannot copy URL -> WC if URL contains externals

From: Philip Martin <philip_at_codematters.co.uk>
Date: Fri, 17 Feb 2012 16:00:33 +0000

Philip Martin <philip.martin_at_wandisco.com> writes:

> Paul Burba <ptburba_at_gmail.com> writes:
>
>> I'm able to replicate this failure on my Windows box with my own
>> builds of trunk_at_1245285, 1.7.0 and 1.7.3. Alexey's script works as
>> expected with 1.6.17, so this appears to be a regression. Moving back
>> to the dev list.
>>
>> Investigating...
>
>>> svn: E720005: Can't move 'C:\t\wc\.svn\tmp\svn-8ED6923C' to
>>> 'C:\t\wc\externals-container-copy': Access is denied.
>
> I suspect this is a directory move. Perhaps the wc.db file of the
> external is still open? Can a directory be renamed on Windows when one
> of the files inside it is still open?

Stopping in svn_io_file_rename on Linux I see:

Breakpoint 2, svn_io_file_rename (
    from_path=0x6b78e0 "/home/pm/sw/subversion/obj/wc/.svn/tmp/svn-E0d1tM",
    to_path=0x685508 "/home/pm/sw/subversion/obj/wc/ecc", pool=0x6b5978)

and

$ ls -l /proc/10833/fd | grep subver
lrwx------ 1 pm pm 64 Feb 17 15:53 7 -> /home/pm/sw/subversion/obj/wc/.svn/wc.db
lrwx------ 1 pm pm 64 Feb 17 15:53 9 -> /home/pm/sw/subversion/obj/wc/.svn/tmp/svn-E0d1tM/e1/.svn/wc.db

so we are renaming a dir while a wc.db is open.

-- 
Philip
Received on 2012-02-17 17:01:18 CET

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