darcs

Issue 661 put with --darcs-2 => "Malformed patch bundle"

Title put with --darcs-2 => "Malformed patch bundle"
Priority urgent Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, markstos, thorkilnaur, tommy, zooko
Assigned To
Topics Darcs2, IncludesExampleOrTest

Created on 2008-02-08.03:57:49 by markstos, last changed 2009-08-27.14:17:03 by admin.

Messages
msg3227 (view) Author: markstos Date: 2008-02-08.03:57:46
I'm marking this as urgent because darcs reports this as a bug itself, and it's
rather easy to trigger with the current darcs-unstable. 

#!/bin/sh

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

set -ev;

rm -rf tmp;
darcs init --darcs-2 --repodir=tmp
touch tmp/t.t
cd tmp
darcs add t.t
echo 'content'>t.t
darcs record -am 'initial add'
echo 'remote change'>t.t
darcs record -am 'remote change'
darcs put tmp2

####

Result is: 

darcs failed:  Malformed patch bundle: 'hunk ./t.t 1' is not 'Context:'

+content

Context:

Patch bundle hash:
5818289a101f72e75fbbb0caf2475b58ef48bf86

Apply failed!

shell returned 2
msg3228 (view) Author: markstos Date: 2008-02-08.03:59:26
I'll add the only the --darcs-2 format fails this test. Both the old format and
the --hashed format pass.
msg3233 (view) Author: droundy Date: 2008-02-08.14:42:45
On Fri, Feb 08, 2008 at 03:59:27AM -0000, Mark Stosberg wrote:
> I'll add the only the --darcs-2 format fails this test. Both the old format and
> the --hashed format pass.

It looks like put isn't passing the correct flags to darcs initialize to
set up the right sort of repository.

David
msg3374 (view) Author: droundy Date: 2008-02-13.17:00:21
I'm just now pushing a patch to fix this bug.
msg7097 (view) Author: zooko Date: 2009-01-14.21:31:33
Is this related to new, not-fixed issue1217?
msg7699 (view) Author: kowey Date: 2009-04-14.20:39:16
Resolving as issue1255 was also resolved.
History
Date User Action Args
2008-02-08 03:57:49markstoscreate
2008-02-08 03:59:27markstossetnosy: droundy, tommy, beschmi, kowey, markstos
messages: + msg3228
title: put => "Malformed patch bundle" -> put with --darcs-2 => "Malformed patch bundle"
2008-02-08 14:42:46droundysetnosy: droundy, tommy, beschmi, kowey, markstos
messages: + msg3233
2008-02-10 02:23:58markstoslinkissue279 superseder
2008-02-13 00:34:57markstoslinkissue681 superseder
2008-02-13 17:00:22droundysetstatus: unknown -> resolved
nosy: droundy, tommy, beschmi, kowey, markstos
messages: + msg3374
2009-01-14 21:31:36zookosetstatus: resolved -> unknown
nosy: + dmitry.kurochkin, zooko, simon, thorkilnaur
messages: + msg7097
2009-04-14 20:39:18koweysetstatus: unknown -> resolved
nosy: droundy, tommy, beschmi, kowey, markstos, zooko, simon, thorkilnaur, dmitry.kurochkin
messages: + msg7699
2009-08-06 17:53:46adminsetnosy: + jast, Serware, darcs-devel, dagit, mornfall, - droundy
2009-08-06 20:57:10adminsetnosy: - beschmi
2009-08-10 22:14:05adminsetnosy: - darcs-devel, jast, dagit, Serware, mornfall
2009-08-25 17:39:11adminsetnosy: + darcs-devel, - simon
2009-08-27 14:17:03adminsetnosy: tommy, kowey, markstos, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin