darcs

Issue 539 wish: make darcs aware of function definitions

Title wish: make darcs aware of function definitions
Priority wishlist Status given-up
Milestone Resolved in
Superseder Nosy List a_regidor, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2007-09-20.11:51:45 by a_regidor, last changed 2017-07-30.23:08:13 by gh.

Messages
msg2134 (view) Author: a_regidor Date: 2007-09-20.11:51:43
Hi,

Now, if patches make changes to different lines or different files, they don't conflict. It would
be nice to have the same behaviour for (Haskell) function definitions. There is 2 possible ways to
do this:

1) New patch types to add a function definition, remove a function definition, and change a
function definition.

2) Do this automatically, like in the case of lines, with --haskell-mode or something like that,
manage definitions the same way as lines are managed now, so that darcs knows which definitions a
patch changes, and regardless of the type of patches, patches to different definitions don't
conflict. In this case, lines should be managed, also.

I didn't read darcs source (yet) but probably 1) should not be difficult using some parsing
library to split a file in function definitions.

Antonio Regidor García

____________________________________________________________________________________
Sé un Mejor Amante del Cine                         
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html
msg2138 (view) Author: droundy Date: 2007-09-21.16:53:27
This would be tricky (by which I don't mean a waste of time).  Something like
this could be done (probably not quite like you describe), but there are a
number of constraints the patch type would have to obey in order to be valid.
History
Date User Action Args
2007-09-20 11:52:02a_regidorcreate
2007-09-21 16:53:27droundysetstatus: unread -> unknown
messages: + msg2138
2008-02-06 16:19:43markstossetstatus: unknown -> deferred
nosy: droundy, tommy, beschmi, kowey, a_regidor
2008-05-14 13:11:46koweysetpriority: feature -> wishlist
nosy: + dagit
title: Feature request: make darcs aware of function definitions -> wish: make darcs aware of function definitions
2009-08-06 17:48:24adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, a_regidor
2009-08-06 20:44:09adminsetnosy: - beschmi
2009-08-10 22:08:35adminsetnosy: + a_regidor, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:02:28adminsetnosy: - dagit
2009-08-25 18:00:14adminsetnosy: + darcs-devel, - simon
2009-08-27 13:59:00adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, a_regidor, dmitry.kurochkin
2009-09-02 15:39:09koweysetnosy: tommy, kowey, darcs-devel, thorkilnaur, a_regidor, dmitry.kurochkin
2017-07-30 23:08:13ghsetstatus: deferred -> given-up