Changeset 85 in tailor
- Timestamp:
- 07/12/04 23:46:06 (9 years ago)
- Hash name:
- 20040712214606-97f81-1ad5ed85b86f8c505b6659b4f968059fbfaab7b1
- Location:
- vcpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/target.py
r82 r85 17 17 HOST = socket.getfqdn() 18 18 AUTHOR = "tailor" 19 BOOTSTRAP_PATCHNAME = 'Tailorization of %s' 20 BOOTSTRAP_CHANGELOG = """\ 21 Import of the upstream sources from the repository 22 23 %(repository)s 24 25 as of revision %(revision)s 26 """ 19 27 20 28 class TargetInitializationFailure(Exception): … … 113 121 self._initializeWorkingDir(root, module) 114 122 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(), 118 125 entries=[module]) 119 126 -
vcpx/cvs.py
r84 r85 129 129 # NB: the _getUpstreamChangesets() below depends on this format 130 130 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) 137 132 138 133 def __collect(self, timestamp, author, changelog, entry, revision): … … 268 263 269 264 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. 270 268 entries = CvsEntries(root) 271 latest = entries.getMostRecentEntry()272 since = latest.timestamp.isoformat(sep=' ')269 ancient = entries.getAncientEntry() 270 since = ancient.timestamp.isoformat(sep=' ') 273 271 else: 274 272 # Assume this is from __getGlobalRevision() 275 since = sincerev .split(';')[0]273 since = sincerev 276 274 277 275 branch = '' … … 386 384 return None 387 385 388 def get MostRecentEntry(self):386 def getAncientEntry(self): 389 387 latest = None 390 388 for e in self.files.values(): … … 396 394 397 395 for d in self.directories.values(): 398 e = d.get MostRecentEntry()396 e = d.getAncientEntry() 399 397 400 398 if not latest:
Note: See TracChangeset
for help on using the changeset viewer.
