[darcs-users] darcs bug on Windows share on Mac OS X

Will will at glozer.net
Wed Jul 14 17:39:32 UTC 2004


On Wed, 14 Jul 2004 07:13:35 -0400, "David Roundy"
<droundy at abridgegame.org> said:
> On Tue, Jul 13, 2004 at 04:58:39PM +0200, Martin Schaffner wrote:
> > If I do the "push test" while having an SMB share as the working directory, 
> > I get:
> > 
> > Fail: /Volumes/MARTIN/bla/repo_0/darcsfGi14U: removeFile: resource busy 
> > (Device busy)
> > 
> > This happens with darcs from 2004-07-10, and "DARCS_SLOPPY_LOCKS=1" does 
> > not help.
> 
> I think I've found (and maybe fixed) this bug.  The problem is that under
> windows you can't delete an open file, and in apply (which is used by
> push)
> that's precisely what we do.  So I've closed the file before deleting. 
> If
> you can retest with the latest darcs, that would be great.

The problem still seems to exist =( The following is a transcript from
my XP machine:

C:\Temp\foo>bug

C:\Temp\foo>mkdir repo

C:\Temp\foo>cd repo

C:\Temp\foo\repo>darcs init
Successfully initialized repository!

C:\Temp\foo\repo>darcs whatsnew  1>bla

C:\Temp\foo\repo>darcs add bla

C:\Temp\foo\repo>darcs record -a --patch-name=1
Darcs needs to know what name (conventionally an email
address) to use as the author).  If you provide one now
I will store it in the file '_darcs/prefs/author', and
use it by default in the future.  To change your preferred
author address, simply delete this file.

What is your email address? foo at bar.com
Finished recording patch '1'

C:\Temp\foo\repo>cd ..

C:\Temp\foo>darcs get repo
Directory 'C:/Temp/foo/repo' already exists, creating repository as
'C:/Temp/foo
/repo_0'
Copying patches...
.
Finished getting.

C:\Temp\foo>cd repo

C:\Temp\foo\repo>darcs whatsnew  1>bla2

C:\Temp\foo\repo>darcs add bla2

C:\Temp\foo\repo>darcs record -a --patch-name=2
Finished recording patch '2'

C:\Temp\foo\repo>darcs push -a ..\repo_0

Fail: C:/Temp/foo/repo_0/darcs-16797: removeFile: permission denied
(Permission
denied)

So far so good... finished merging.
Finished applying...

C:\Temp\foo\repo>cd ..

C:\Temp\foo>attrib repo_0
           C:\Temp\foo\repo_0

C:\Temp\foo>attrib repo_0\*
A          C:\Temp\foo\repo_0\bla
A          C:\Temp\foo\repo_0\bla2
A          C:\Temp\foo\repo_0\darcs-16797

C:\Temp\foo>type repo_0\darcs-16797

Context:

[1
foo at bar.com**20040714173245]

New patches:

[2
foo at bar.com**20040714173248] {
addfile ./bla2
hunk ./bla2 1
+No changes!
}

C:\Temp\foo>















Regards,
Will





























































































More information about the darcs-users mailing list