Created on 2008-05-18.17:37:12 by btcoburn, last changed 2009-10-23.23:29:06 by admin.
msg4751 (view) |
Author: btcoburn |
Date: 2008-05-18.17:37:09 |
|
Sometimes patches with one "atomic change" have curly braces and sometimes they
don't. Specificaly, patches imported with 'darcs get --hashed' retain curly
braces, while patches newly created in the hashed repository are not represented
with curly braces.
See the following example. The first two patches were imported with 'darcs get
--hashed', while the second two patches were created directly in the hashed
repository.
[test setup
test@example.com**20080518153437] {
addfile ./baz
hunk ./baz 1
+test setup again
}
[patch format test
test@example.com**20080518153518] {
hunk ./baz 2
+darcs1 test one hunk
+
}
[local one hunk
test@example.com**20080518173216] hunk ./baz 3
+
+one hunk locally recorded in darcs2
[two hunk local patch
test@example.com**20080518173647] {
hunk ./baz 1
-test setup again
+test setup
hunk ./baz 4
-one hunk locally recorded in darcs2
+two hunk locally recorded in darcs2
}
Darcs 2.0.0 stable release binary for MacOS X. Patches were listed with 'darcs
send -o'.
|
msg4752 (view) |
Author: kowey |
Date: 2008-05-18.17:50:22 |
|
Jason: any chance this could be serious?
|
msg4761 (view) |
Author: kowey |
Date: 2008-05-19.09:00:22 |
|
Ok, I'm going to escalate because I can't tell if this is worrisome or not, and
I'd rather be safe than sorry. David: is there any need to be worried about
this bug?
|
msg4771 (view) |
Author: daveroundy |
Date: 2008-05-19.14:56:18 |
|
Do you consider this a bug? If so, why?
David
|
msg4773 (view) |
Author: kowey |
Date: 2008-05-19.15:04:21 |
|
I guess the potential cause for concern was something about hashes being
different for otherwise the same patch created under the different circumstances
(sort of the opposite problem of a collision). It didn't seem like we really
relied on this for anything in particular, but thought it was worth checking :-)
Otherwise, I think why Ben considers it to be a bug is because it makes it
harder for outside tools be parsing darcs patch files, definitely a lower
priority than the above.
|
msg8326 (view) |
Author: kowey |
Date: 2009-08-21.22:56:50 |
|
Hi Ben,
I think it's probably best that we left this alone. If anybody wants to parse
darcs patches, they'll just have to account for the possibility that (in the
case of there only being a single primitive patch in the named patch) there may
not be any curly braces.
My thinking is that any tool that works with darcs patches is going to have to
deal with old patch files produced by darcs anyway, so this spending time to fix
this probably won't really help matters.
Thanks!
|
|
Date |
User |
Action |
Args |
2008-05-18 17:37:12 | btcoburn | create | |
2008-05-18 17:50:23 | kowey | set | status: unread -> unknown nosy:
+ kowey messages:
+ msg4752 |
2008-05-19 09:00:23 | kowey | set | nosy:
+ droundy messages:
+ msg4761 |
2008-05-19 13:56:10 | kowey | link | issue863 superseder |
2008-05-19 13:56:28 | kowey | unlink | issue863 superseder |
2008-05-19 14:56:20 | daveroundy | set | nosy:
+ daveroundy messages:
+ msg4771 |
2008-05-19 14:58:26 | droundy | set | priority: bug -> not-our-bug nosy:
droundy, tommy, beschmi, kowey, dagit, btcoburn, daveroundy, Serware |
2008-05-19 15:00:14 | droundy | set | priority: not-our-bug -> wishlist nosy:
droundy, tommy, beschmi, kowey, dagit, btcoburn, daveroundy, Serware |
2008-05-19 15:04:23 | kowey | set | nosy:
droundy, tommy, beschmi, kowey, dagit, btcoburn, daveroundy, Serware messages:
+ msg4773 |
2008-09-28 20:50:00 | admin | set | nosy:
+ simon, thorkilnaur, - daveroundy |
2009-08-06 17:58:41 | admin | set | nosy:
+ markstos, jast, dmitry.kurochkin, darcs-devel, zooko, mornfall, - droundy, btcoburn |
2009-08-06 21:05:11 | admin | set | nosy:
- beschmi |
2009-08-10 22:20:44 | admin | set | nosy:
+ btcoburn, - markstos, darcs-devel, zooko, jast, mornfall |
2009-08-11 00:14:41 | admin | set | nosy:
- dagit |
2009-08-21 22:56:53 | kowey | set | status: unknown -> wont-fix nosy:
tommy, kowey, simon, thorkilnaur, btcoburn, dmitry.kurochkin, Serware topic:
- Darcs2 messages:
+ msg8326 title: Output patch format depends on patch origin for hashed repos! -> always use curly braces for primitive patches even if there is only one |
2009-08-25 17:29:30 | admin | set | nosy:
+ darcs-devel, - simon |
2009-08-27 14:28:55 | admin | set | nosy:
tommy, kowey, darcs-devel, thorkilnaur, btcoburn, dmitry.kurochkin, Serware |
2009-10-23 22:43:08 | admin | set | nosy:
+ serware, - Serware |
2009-10-23 23:29:06 | admin | set | nosy:
+ Serware, - serware |
|