bugtracker extension: Cannot use certain character for bug title or description.
Created originally on Bitbucket by lombaardcj (Lombaardcj)
When using command prompt to create/modify a bug through bugtracker extension, the following traceback is given when saving bugreport in notepad and closing the notepad window. Same happend when performing same only in command prompt "hg bug add -t "bug title" -d "bug description"
I take it from the traceback that an elegal character is enterred as part of bug description. The following characters have been entered as a bug description. {{{ Full Bug description containing elegal characters:
PROD: UP PREP:Resource folder names replace spaces with _ During testing on 2012/03/27 a chan %20 -> fixresourcelinks(...) Bug(#877e78c7)) \s character _ character BT: --- BT: Enter the bug information. BT: Lines starting wit "BT:" will be ignored. BT: First line will be the bug title. Subsequent lines will fill the description. BT: Do not change the file to abort the operation.
Traceback
C:\Users\CLombaard\Documents\NetBeansProjects\DataTransfer_newui>hg bug modify 6 a7133b1 ** unknown exception encountered, please report by visiting ** http://mercurial.selenic.com/wiki/BugTracker ** Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] ** Mercurial Distributed SCM (version 2.1.1) ** Extensions loaded: bugtrack, color, hgk, largefiles, rebase, churn, eol, grap hlog, progress, zipdoc Traceback (most recent call last): File "hg", line 42, in File "mercurial\dispatch.pyo", line 27, in run File "mercurial\dispatch.pyo", line 64, in dispatch File "mercurial\dispatch.pyo", line 87, in runcatch File "mercurial\dispatch.pyo", line 683, in dispatch File "mercurial\dispatch.pyo", line 465, in runcommand File "mercurial\extensions.pyo", line 184, in wrap File "hgext\color.pyo", line 362, in colorcmd File "mercurial\dispatch.pyo", line 737, in runcommand File "mercurial\dispatch.pyo", line 691, in checkargs File "mercurial\dispatch.pyo", line 680, in File "mercurial\util.pyo", line 456, in check File "C:\Program Files\TortoiseHg\extensions\bugtracker-extension-0.2.5.1__in it.py", line 462, in command_bug actions_fnaction File "C:\Program Files\TortoiseHg\extensions\bugtracker-extension-0.2.5.1__in it_.py", line 390, in bug_modify bug.save() File "C:\Program Files\TortoiseHg\extensions\bugtracker-extension-0.2.5.1\bugt racker.py", line 195, in save cfg.set( "info", o, self._info[o] ) File "ConfigParser.pyo", line 669, in set ValueError: invalid interpolation syntax in 'During testing on 2012/03/27 a chan \n%20 -> fixresourcelinks(...) Bug(#877e78c7)) \s character _ character' at pos ition 36
C:...ui> }}}