New submission from Pekka Pessi <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue231>
____________________________________

Attachment: darcs-bug-replace
Description: Binary data

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to