Changeset 85 in tailor


Ignore:
Timestamp:
07/12/04 23:46:06 (9 years ago)
Author:
lele@…
Hash name:
20040712214606-97f81-1ad5ed85b86f8c505b6659b4f968059fbfaab7b1
Message:

Some re-wording, tag the CVS changesets using only the timestamp

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/target.py

    r82 r85  
    1717HOST = socket.getfqdn() 
    1818AUTHOR = "tailor" 
     19BOOTSTRAP_PATCHNAME = 'Tailorization of %s' 
     20BOOTSTRAP_CHANGELOG = """\ 
     21Import of the upstream sources from the repository 
     22 
     23 %(repository)s 
     24 
     25as of revision %(revision)s 
     26""" 
    1927 
    2028class TargetInitializationFailure(Exception): 
     
    113121        self._initializeWorkingDir(root, module) 
    114122        self._commit(root, now, '%s@%s' % (AUTHOR, HOST), 
    115                      'Tailorization of %s' % module, 
    116                      'Upstream sources from %s at revision %s' % (repository, 
    117                                                                   revision), 
     123                     BOOTSTRAP_PATCHNAME % module, 
     124                     BOOTSTRAP_CHANGELOG % locals(), 
    118125                     entries=[module]) 
    119126 
  • vcpx/cvs.py

    r84 r85  
    129129        # NB: the _getUpstreamChangesets() below depends on this format 
    130130 
    131         if len(changelog)>33: 
    132             msg = changelog[:30] + '...' 
    133         else: 
    134             msg = changelog 
    135         msg = msg.replace('\n', '') 
    136         return '%s; %s, "%s"' % (timestamp, author, msg) 
     131        return str(timestamp) 
    137132 
    138133    def __collect(self, timestamp, author, changelog, entry, revision): 
     
    268263 
    269264        if not sincerev: 
     265            # We are bootstrapping, trying to collimate the 
     266            # actual revision on disk with the changesets. 
     267            # Start from the ancient entry timestamp. 
    270268            entries = CvsEntries(root) 
    271             latest = entries.getMostRecentEntry() 
    272             since = latest.timestamp.isoformat(sep=' ') 
     269            ancient = entries.getAncientEntry() 
     270            since = ancient.timestamp.isoformat(sep=' ') 
    273271        else: 
    274272            # Assume this is from __getGlobalRevision() 
    275             since = sincerev.split(';')[0] 
     273            since = sincerev 
    276274             
    277275        branch = '' 
     
    386384            return None 
    387385 
    388     def getMostRecentEntry(self): 
     386    def getAncientEntry(self): 
    389387        latest = None 
    390388        for e in self.files.values(): 
     
    396394 
    397395        for d in self.directories.values(): 
    398             e = d.getMostRecentEntry() 
     396            e = d.getAncientEntry() 
    399397             
    400398            if not latest: 
Note: See TracChangeset for help on using the changeset viewer.