[darcs-devel] [issue231] darcs replace with weird token-chars loses

Pekka Pessi bugs at darcs.net
Sat Aug 5 10:23:51 PDT 2006


New submission from Pekka Pessi <ppessi at gmail.com>:

It looks like there is some problems with darcs replace when
token-chars contains odd characters. darcs replace exits with 0 but
nothing is shown with whatis. The previous replace changes are lost,
too. The darcs versions tested are home-brewn darcs-1.0.7 and
statically linked 1.0.8 downloaded from the net.

A shell script demonstrating problem is attached.   Here is an example run:

$ ./darcs-bug-replace
+ darcs add foo.c foo.xml
+ darcs record --all -mAdded foo.c foo.xml
Recording changes in "foo.c" "foo.xml":

Finished recording patch 'Added'
+ darcs replace foo fuu foo.c
+ darcs w
{
replace ./foo.c [A-Za-z_0-9] foo fuu
}
+ darcs replace X XX foo.xml --token-chars '[a-zA-Z_0-9$]'
+ darcs w
{
replace ./foo.c [A-Za-z_0-9] foo fuu
replace ./foo.xml [a-zA-Z_0-9$] X XX
}
+ darcs replace ' X ' ' XX ' --token-chars '[ X]' foo.xml
+ darcs w
No changes!
Exit 1

The expected results would be that the third darcs either adds the
replace change or complains about weird token-chars then exits with
non-zero value. Previous replaces should not be lost.

----------
files: darcs-bug-replace
messages: 855
nosy: droundy, ppessi, tommy
status: unread
title: darcs replace with weird token-chars loses

____________________________________
Darcs issue tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue231>
____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darcs-bug-replace
Type: application/octet-stream
Size: 505 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20060805/9174aec8/darcs-bug-replace.obj


More information about the darcs-devel mailing list