[darcs-users] `darcs send` only working with -o

Eric Kow kowey at darcs.net
Fri Sep 2 13:56:40 UTC 2011


Hi,

I'm afraid the answer boils down to "don't do that"
(copy and paste patch bundles)

On Fri, Sep 02, 2011 at 14:17:36 +0100, Ash Moran wrote:
> What is causing this?
>
> There are differences in whitespace but I don't know if they're
> significant.

The differences in whitespace are indeed significant.  In this
particular case, darcs parsed the bundle all the way to the bits
after 'Context: '. The file format uses an initial whitespace before
each line of the patch log, which avoids ambiguities stemming from patch
logs with things that look like the darcs file format.

Entering thought experiment space: if by chance the Context was fine,
then (by rights) you should have be saved from applying a bad patch
through a patch bundle hash failure.  If you defeated this by removing
the patch bundle hash, you might successfully apply the patches but then
run into trouble working with your collaborator later on because you
would have applied a subtly different patch but with the same id.

So avoid copy+pasting, and while I'm at it,
don't fight the hash failures... :-) 

-- 
Eric Kow <http://erickow.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20110902/a94097d9/attachment.asc>


More information about the darcs-users mailing list