Ticket #150 (new defect)

Opened 5 years ago

Last modified 5 years ago

cvs (via cvsps) fails to parse INITIAL as revision

Reported by: shadow Owned by: lele
Priority: major Milestone: VersionOne
Component: cvsps Version: 0.9
Keywords: Cc:

Description (last modified by lele) (diff)

File "/opt/local/lib/python2.4/site-packages/vcpx/repository/cvsps.py",
line 257, in _getUpstreamChangesets
   for cs in changesets_from_cvsps(log, sincerev):
 File "/opt/local/lib/python2.4/site-packages/vcpx/repository/cvsps.py",
line 191, in changesets_from_cvsps
   if compare_cvs_revs(e.old_revision, fromrev)>0:
 File "/opt/local/lib/python2.4/site-packages/vcpx/repository/cvs.py",
line 53, in compare_cvs_revs
   r1 = normalize_cvs_rev(revstr1)
 File "/opt/local/lib/python2.4/site-packages/vcpx/repository/cvs.py",
line 39, in normalize_cvs_rev
   r = [int(n) for n in rev.split('.')]
ValueError: invalid literal for int(): INITIAL

looks like fromrev is INITIAL and that just gets passed to the cvs rev comparison, which isn't going to work.

What *should* happen?

Attachments

openafs.tailor Download (3.0 KB) - added by shadow 5 years ago.
tailor file for openafs project
tailor.diff Download (2.0 KB) - added by shadow 5 years ago.
cvsps diff... might fix it?

Change History

Changed 5 years ago by shadow

tailor file for openafs project

Changed 5 years ago by shadow

cvsps diff... might fix it?

comment:1 Changed 5 years ago by lele

  • Component changed from tailor to cvsps
  • Description modified (diff)
Note: See TracTickets for help on using tickets.