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 centaurus-cvs@lists.sourceforge.net...
Generating notification message...
Generating notification message... done.
Mailing centaurus-cvs@lists.sourceforge.net...
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
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 phpdocmanager-cvs@lists.sourceforge.net...
Generating notification message...
Generating notification message... done.
Mailing phpdocmanager-cvs@lists.sourceforge.net...
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
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.