[darcs-devel] [issue887] wish: darcs replace --interactive
Florent Becker
bugs at darcs.net
Thu Aug 14 10:01:56 UTC 2008
Florent Becker <florent.becker at ens-lyon.org> added the comment:
Implementing a good UI for this within darcs can be quite hard. Here is a
proposal that allows the UI to be made by an external app, or an emacs/vi/yi/…
macro.
Have darcs replace take a --false-matches=FILE option. This file is a list of
coordinates (file:line:col) of false matches.
Darcs replace old new file --false-matches=fm produces the following composition
of primitive patches.
-a hunk that changes every occurence of "old" at a coordinate in fm to "_old_"
-the replace patch old -> new
-a hunk that changes the occurences of "_old_" at a coordinate in fm to "old"
Then an interactive tool would show each occurence of old in files, ask whether
to change it, if not, put it in a /tmp/false-matches patch, and call darcs
replace old new files --false-matches=/tmp/false-matches.
We would need to make the delimiters for escaping the false matches into a
preference.
----------
nosy: +darcs-devel, galbolle, simon
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue887>
__________________________________
More information about the darcs-devel
mailing list