[darcs-users] darcs push problem: cannot find file

Will will at glozer.net
Fri Nov 19 07:58:15 UTC 2004


Michael Milverton <camel77 at iprimus.com.au> writes:

> On windows boxes, I also have this exact problem. Pushing fails, pulling 
> works.
>
> On Thu, 18 Nov 2004 11:08 am, rand at executableabstractions.com wrote:
>> Hello,
>> I have just gotten started with darcs.
>>
>> I have created a master repository in my local filesystem for a new
>> project using darcs init, then create a single file in it, which I
>> darcs record.
>>
>> I then create a working dir and repository (darcs init), and do a darcs
>> pull to pull from the master.
>>
>> In my working dir, I make a change to the single file, and darcs record
>> it. Fine.
>>
>> Now I want to push it back to the master. When I try to darcs push back
>> to the master, I get this:
>>
>>     C:\My Projects\aws2>darcs push ..\aws
>>     Pushing to ../aws...
>>
>>     Sat Nov 13 23:01:34 Eastern Standard Time 2004
>> rand at executableabstractions.com
>>       * patch2
>>     Shall I push this patch? (1/1) [ynWvxqadjk?]
>>     The system cannot find the file specified.
>>
>> What file can it not find?
>>
>> If I cd to the master repository, I seem to be able to pull from the
>> working repository fine.
>>
>>     C:\My Projects\aws2>cd ..\aws
>>
>>     C:\My Projects\AWS>darcs pull ..\aws2
>>
>>     Sat Nov 13 23:01:34 Eastern Standard Time 2004
>> rand at executableabstractions.com
>>       * patch2
>>     Shall I pull this patch? (1/1) [ynWvxqadjk?]
>>     Finished pulling.
>>     awaitRequests: unexpected wait return code 4294967295
>>

I can also duplicate this problem, when I attempt to push a patch that
modifies an existing file I get:

  darcs failed:  Error applying patch to recorded!

Strangely this only seems to happen for hunk patches; adding,
removing, and replacing work fine.  Even stranger, it works ok when
darcs is run from msys's sh.exe, but not from cmd.exe.  The only
difference I can see is whether the lines in the file end in "\n" or
"\r\n".

Regards,
Will




More information about the darcs-users mailing list