Created on 2007-06-20.19:20:18 by trentbuck, last changed 2009-08-27.13:50:24 by admin.
File name |
Uploaded |
Type |
Edit |
Remove |
bad.mbox
|
trentbuck,
2007-06-20.19:20:15
|
text/plain |
|
|
good.mbox
|
trentbuck,
2007-06-20.19:20:15
|
text/plain |
|
|
orig.mbox
|
trentbuck,
2007-06-20.19:20:15
|
text/plain |
|
|
msg1733 (view) |
Author: twb |
Date: 2007-06-20.19:20:15 |
|
I applied a patch (orig.mbox), resolved conflicts, then amended it. I
got a weird patch (bad.mbox). I then unrecorded and recorded, and got
a correct patch (good.mbox). Before unrecording, changes -v reported
the same bad hunk as is in bad.mbox.
If this bug is considered interesting, I can provide more detail.
$ darcs --version
1.0.8 (release)
$ darcs --exact-version
darcs compiled on Jul 4 2006, at 20:08:54
# configured Fri Jun 16 14:55:21 EDT 2006
./configure --no-create --no-recursion
Context:
[TAG 1.0.8
Tommy Pettersson <ptp@lysator.liu.se>**20060616160213]
--
Trent Buck
Attachments
|
msg1860 (view) |
Author: kowey |
Date: 2007-07-18.06:59:06 |
|
Please provide more detail, perhaps also a sequence of commands. I'm having
some trouble understanding what's going on.
|
msg1861 (view) |
Author: twb |
Date: 2007-07-18.10:04:57 |
|
On Wed, Jul 18, 2007 at 06:59:07AM -0000, Eric Kow wrote:
> Please provide more detail, perhaps also a sequence of commands.
> I'm having some trouble understanding what's going on.
I thought this was clear:
>> I applied a patch (orig.mbox), resolved conflicts, then amended
>> it. I got a weird patch (bad.mbox). I then unrecorded and
>> recorded, and got a correct patch (good.mbox). Before unrecording,
>> changes -v reported the same bad hunk as is in bad.mbox.
Allow me to paraphrase. Each attached .mbox file is a mbox-formatted
mail archive with a single mail message, created by "darcs send".
What follows are not the verbatim commands I used (I can't remember
them), but an approximation.
darcs apply ../orig.darcs-patch
editor GNUMakefile
echo yd | darcs amend -a
darcs send -a -o ../bad.darcs-patch
echo yd | darcs unrecord
darcs record -am 'Localize for office.cyber.com.au.'
darcs send -a -o ../good.darcs-patch
If you care to compare bad and good, which should have identical
hunks, you'll see that a bunch of extra deletions and re-insertions.
--
Trent W. Buck
|
msg1867 (view) |
Author: tommy |
Date: 2007-07-18.22:27:38 |
|
Was the patch bad / weird as in broken so that darcs complained
about it, or just odd looking?
The amend code is different from the unrecord / record code.
Amend clashes old and new changes together, and then performs
some simple optimization tricks on the result, which can
sometimes result in not completely optimized patches.
But if the patch is broken then this is truly a bug.
|
msg1869 (view) |
Author: twb |
Date: 2007-07-19.04:11:25 |
|
I honestly don't remember. Feel free to close this bug; if it happens
again I'll keep better records.
--
Trent W. Buck
|
msg1883 (view) |
Author: kowey |
Date: 2007-07-21.06:38:34 |
|
Ok. Please let us know if this comes up again.
|
|
Date |
User |
Action |
Args |
2007-06-20 19:20:19 | trentbuck | create | |
2007-07-18 06:59:20 | kowey | set | topic:
+ Conflicts status: unread -> unknown messages:
+ msg1860 |
2007-07-18 10:04:58 | trentbuck | set | messages:
+ msg1861 |
2007-07-18 22:27:40 | tommy | set | messages:
+ msg1867 |
2007-07-19 04:11:26 | trentbuck | set | messages:
+ msg1869 |
2007-07-21 06:38:37 | kowey | set | status: unknown -> resolved messages:
+ msg1883 |
2009-08-06 17:42:49 | admin | set | nosy:
+ markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy, trentbuck |
2009-08-06 20:39:46 | admin | set | nosy:
- beschmi |
2009-08-10 22:05:20 | admin | set | nosy:
+ trentbuck, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall |
2009-08-25 17:56:09 | admin | set | nosy:
+ darcs-devel, - simon |
2009-08-27 13:50:24 | admin | set | nosy:
tommy, kowey, darcs-devel, trentbuck, thorkilnaur, dmitry.kurochkin |
|