[darcs-devel] [issue662] pull => darcs failed: Error applying hunk to file

Mark Stosberg bugs at darcs.net
Fri Feb 8 04:13:36 UTC 2008


New submission from Mark Stosberg <mark at summersault.com>:

The following test script causes the result:

"darcs failed:  Error applying hunk to file ./t.t
Error applying patch to the working directory."

The script to reproduce it with a darcs-unstable build is:

#!/bin/sh

IFS='';
export IFS;
EMAIL=tester;
export EMAIL;

set -v;

rm -rf tmp;
darcs init --hashed --repodir=tmp
touch tmp/t.t
cd tmp
darcs add t.t
echo 'content'>t.t
darcs record -am 'initial add' --ignore
echo 'content: remote change'>t.t
darcs record -am 'remote change' --ignore
darcs put tmp2
cd tmp2
darcs obliterate --last 1 --all;
echo 'content: local change'> t.t
darcs pull -a ../
darcs w -s
darcs revert

----------
messages: 3230
nosy: beschmi, droundy, kowey, markstos, tommy
priority: urgent
status: chatting
title: pull => darcs failed:  Error applying hunk to file
topic: Darcs2

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue662>
__________________________________


More information about the darcs-devel mailing list