darcs

Issue 245 more precise 'Bad token spec' error messages.

Title more precise 'Bad token spec' error messages.
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List E.Y.Kow, darcs-devel, dmitry.kurochkin, evilrob, jaredj, jch, kowey, thorkilnaur, tommy
Assigned To
Topics ProbablyEasy, UI

Created on 2006-08-18.15:04:17 by robk-darcsspam, last changed 2009-10-24.09:10:35 by admin.

Messages
msg916 (view) Author: evilrob Date: 2006-08-18.15:04:13
the example char class given works, but the one I tried - listing
specific chars - didn't work with any combination of backslash escaping...

#[Thu Aug 17 16:02:09] rabbit$ darcs replace --token-chars "[selfrd\._]" self.r
 self.block_in_file amdlib/storage/tinystore.py

darcs failed:  Bad token spec:  [selfrd\._]
#[Thu Aug 17 16:02:28] rabbit$ darcs replace --token-chars "[a-zA-Z_0-9\-\.]" s
elf.r self.block_in_file amdlib/storage/tinystore.py
#[Thu Aug 17 16:02:57] rabbit$
msg976 (view) Author: jch Date: 2006-09-06.22:04:33
Hi,

This message usually means that one of your tokens is not a token according to
your spec.  For example, self.block_in_file contains a ``b'', but ``b'' is not
allowed in a token in your spec.

I agree that the message is not comprehensible -- I'll fix that.
msg4518 (view) Author: E.Y.Kow Date: 2008-05-03.16:47:48
The following patch updated the status of issue245 to be resolved in the unstable branch:

* resolve issue245: more precise 'Bad token spec' error messages. 
I think this resolves issue371 as well.

You can view the patch details online here: 
http://darcs.net/cgi-bin/darcs.cgi/unstable/?c=annotate&p=20080502204426-2067a-2e3873100fbddebd953c7c1b90fd48cd0657eb3d.gz
History
Date User Action Args
2006-08-18 15:04:17robk-darcsspamcreate
2006-09-06 22:04:39jchsetstatus: unread -> unknown
nosy: + jch
messages: + msg976
title: --token-chars doesn't recognise normal regex -> "Bad token spec" message not comprehensible
2007-08-06 08:57:17koweysetnosy: + kowey, beschmi
2007-08-09 07:35:51koweylinkissue371 superseder
2007-08-09 07:36:10koweyunlinkissue371 superseder
2008-02-09 19:04:48markstossetstatus: unknown -> deferred
nosy: droundy, jch, tommy, beschmi, kowey, robk-darcsspam
assignedto: jch ->
2008-04-30 19:46:53koweysetstatus: deferred -> unknown
nosy: + dagit, jaredj
topic: + ProbablyEasy, UI
2008-05-03 16:47:51E.Y.Kowsetstatus: unknown -> resolved-in-unstable
nosy: + E.Y.Kow
messages: + msg4518
title: "Bad token spec" message not comprehensible -> more precise 'Bad token spec' error messages.
2008-08-05 23:27:04koweysetstatus: resolved-in-unstable -> resolved
nosy: droundy, jch, tommy, beschmi, kowey, dagit, robk-darcsspam, jaredj, E.Y.Kow
2009-08-06 17:37:55adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, jch, robk-darcsspam, jaredj, E.Y.Kow
2009-08-06 20:34:38adminsetnosy: - beschmi
2009-08-10 21:54:40adminsetnosy: + E.Y.Kow, robk-darcsspam, jch, jaredj, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:55:32adminsetnosy: - dagit
2009-08-25 17:51:32adminsetnosy: + darcs-devel, - simon
2009-08-27 14:01:43adminsetnosy: jch, tommy, kowey, darcs-devel, robk-darcsspam, thorkilnaur, jaredj, dmitry.kurochkin, E.Y.Kow
2009-10-24 00:45:18adminsetnosy: + robk, - robk-darcsspam
2009-10-24 09:10:35adminsetnosy: + evilrob, - robk
2010-05-29 13:08:21koweylinkpatch242 issues