From: SourceForge.net <no...@so...> - 2004-01-09 03:35:57
|
Bugs item #845767, was opened at 2003-11-20 13:02 Message generated for change (Comment added) made by armarshall You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=845767&group_id=47611 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thorsten Kamann (thorque) Assigned to: Nobody/Anonymous (nobody) Summary: Syncmail script produces error Initial Comment: Hello SF-Support, yesterday I setup the syncmail-script to report a commit to a mailinglist for the project centaurus. This function properly...yesterday. Since todays morning there occurs an error: cvs -r ci -m "/Centaurus/project/server/webapps/ROOT/index.htm" Checking in project/server/webapps/ROOT/index.htm; /cvsroot/centaurus/project/server/webapps/ROOT/index.htm,v <-- index.htm new revision: 1.2; previous revision: 1.1 done Mailing cen...@li...... Generating notification message... Generating notification message... done. Mailing cen...@li...... Generating notification message... Traceback (innermost last): File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 322, in ? main() File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 315, in main blast_mail(subject, people, specs[1:], contextlines, fromhost) File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 240, in blast_mail print calculate_diff(file, contextlines) File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 139, in calculate_diff file, oldrev, newrev = string.split(filespec, ',') ValueError: unpack list of wrong size I'm using the Eclipse IDE Version 1.2 on SuSE Linux 8.2 Whats wrong? Best regards Thorsten Kamann ---------------------------------------------------------------------- Comment By: Allen R. Marshall (armarshall) Date: 2004-01-09 03:35 Message: Logged In: YES user_id=147690 I had this very same problem. It happened because I rashly asked for tag information in my loginof entry e.g. %{sVvt}. This generated, at least on my cvs, a filespec value that had a trailing , since there was no tag information (actually, it did that even when there should have been tag information, which makes me wonder if the cvs commit message thingumee has an issue). I solved it by adding another variable at the referenced line 139 called tag e.g. file, oldrev, newrev, tag = string.split(filespec,','). Problem solved. Smarter people who know Python would know how to trim that bad boy off before it causes this choking. However, it would be WAY DESIRABLE for syncmail to just include the commit-to tag entry, if the user wants it, since it is a legitimate expansion option in loginfo. ---------------------------------------------------------------------- Comment By: Nuno Lopes (nuno-lopes) Date: 2003-11-30 09:27 Message: Logged In: YES user_id=841194 Hi, Syncmail used to work, but today I imported a new module to the cvs repository and it gave me an error: ------------ No conflicts created by this import Mailing php...@li...... Generating notification message... Generating notification message... done. Mailing php...@li...... Generating notification message... Traceback (innermost last): File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 322, in ? main() File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 315, in main blast_mail(subject, people, specs[1:], contextlines, fromhost) File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 240, in blast_mail print calculate_diff(file, contextlines) File "/cvsroot/sitedocs/CVSROOT/cvstools/syncmail", line 139, in calculate_dif f file, oldrev, newrev = string.split(filespec, ',') ValueError: unpack list of wrong size ---------------------- I didn't receive any e-mail for this import. Nuno Lopes ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=845767&group_id=47611 |