Changeset 562 in tailor for vcpx/cvsps.py


Ignore:
Timestamp:
08/15/05 02:24:32 (8 years ago)
Author:
lele@…
Hash name:
20050815002432-97f81-d676e0267483e0bb72350e47397cbc29d61daa3d
Message:

Use getPendingChangesets() at bootstrap time for CVS, and cache them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvsps.py

    r560 r562  
    278278                revision, timestamp = revision.split(' ', 1) 
    279279 
    280         csets = self._getUpstreamChangesets(revision) 
    281         csets.reverse() 
     280        csets = self.getPendingChangesets(revision) 
    282281 
    283282        if timestamp == 'INITIAL': 
    284             timestamp = csets[-1].date.isoformat(sep=' ') 
     283            timestamp = csets[0].date.isoformat(sep=' ') 
    285284 
    286285        if not exists(join(self.basedir, 'CVS')): 
     
    312311                                           "that." % self.basedir) 
    313312 
    314         # update cvsps cache, then loop over the changesets and find the 
    315         # last applied, to find out the actual cvsps revision 
     313        # loop over the changesets and find the last applied, to find 
     314        # out the actual cvsps revision 
    316315 
    317316        found = False 
    318         for cset in csets: 
     317        while csets: 
     318            cset = csets.pop(0) 
    319319            for m in cset.entries: 
    320320                info = entries.getFileInfo(m.name) 
    321321                if info: 
    322322                    actualversion = info.cvs_version 
    323                     found = compare_cvs_revs(actualversion,m.new_revision)>=0 
     323                    found = compare_cvs_revs(actualversion,m.new_revision) == 0 
    324324                    if not found: 
    325325                        break 
Note: See TracChangeset for help on using the changeset viewer.