Changeset 426 in tailor
- Timestamp:
- 07/25/05 23:40:28 (8 years ago)
- Hash name:
- 20050725214028-97f81-36aa171e639fa273afa4c08dc92c6b7f416b62dc
- Location:
- vcpx
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cvsps.py
r420 r426 260 260 the name of the tag to get, or as a date if it starts with a number. 261 261 262 Return the effective cvsps revision.262 Return the last applied changeset. 263 263 """ 264 264 … … 336 336 last.revision) 337 337 338 return last .revision338 return last 339 339 340 340 def _willApplyChangeset(self, root, changeset, applyable=None): -
vcpx/source.py
r380 r426 167 167 :revision: extract that revision/branch 168 168 169 Return the checked out revision.169 Return the last applied changeset. 170 170 """ 171 171 -
vcpx/target.py
r393 r426 316 316 raise "%s should override this method" % self.__class__ 317 317 318 def initializeNewWorkingDir(self, root, repository, module, subdir, revision): 318 def initializeNewWorkingDir(self, root, repository, module, subdir, 319 changeset): 319 320 """ 320 321 Initialize a new working directory, just extracted from … … 322 323 """ 323 324 324 from datetime import datetime325 326 now = datetime.now()327 325 self._initializeWorkingDir(root, repository, module, subdir) 328 326 patchname = BOOTSTRAP_PATCHNAME % module 327 revision = changeset.revision 329 328 changelog = BOOTSTRAP_CHANGELOG % locals() 330 self._commit(root, now, '%s@%s' % (AUTHOR, HOST), patchname, changelog,331 entries=[subdir])329 self._commit(root, changeset.date, '%s@%s' % (AUTHOR, HOST), patchname, 330 changelog, entries=[subdir]) 332 331 333 332 def _initializeWorkingDir(self, root, repository, module, subdir): -
vcpx/darcs.py
r425 r426 223 223 subdir=None, logger=None, **kwargs): 224 224 """ 225 Concretely do the checkout of the upstream revision. 225 Concretely do the checkout of the upstream revision and return 226 the last applied changeset. 226 227 """ 227 228 … … 283 284 last = changesets_from_darcschanges(output) 284 285 285 return last[0] .revision286 return last[0] 286 287 287 288 -
vcpx/svn.py
r424 r426 260 260 info = self.__getSvnInfo(wdir) 261 261 262 actual = info['Revision'] 262 cmd = [SVN_CMD, "log", "--verbose", "--xml", "--revision", revision] 263 svnlog = ExternalCommand(cwd=wdir, command=cmd) 264 output = svnlog.execute(stdout=PIPE) 265 266 if svnlog.exit_status: 267 raise ChangesetApplicationFailure( 268 "%s returned status %d saying \"%s\"" % 269 (str(changes), changes.exit_status, output.read())) 270 271 csets = changesets_from_svnlog(output, info['URL'], repository, module) 272 273 last = csets[0] 263 274 264 275 if logger: logger.info("working copy up to svn revision %s", 265 actual)266 267 return actual276 last.revision) 277 278 return last 268 279 269 280 ## SyncronizableTargetWorkingDir -
vcpx/tailor.py
r418 r426 345 345 self.module = module 346 346 self.subdir = subdir 347 self.upstream_revision = actual 347 self.upstream_revision = actual.revision 348 348 349 349 self.__saveStatus() -
vcpx/cdv.py
r393 r426 63 63 ExternalCommand(cwd=root, command=cmd).execute(oldname, newname) 64 64 65 def initializeNewWorkingDir(self, root, repository, module, subdir, revision): 65 def initializeNewWorkingDir(self, root, repository, module, subdir, 66 changeset): 66 67 """ 67 68 Initialize a new working directory, just extracted from … … 69 70 """ 70 71 71 from datetime import datetime72 72 from target import AUTHOR, HOST, BOOTSTRAP_PATCHNAME, \ 73 73 BOOTSTRAP_CHANGELOG 74 74 75 now = datetime.now()76 75 self._initializeWorkingDir(root, repository, module, subdir) 77 self._commit(root, now, '%s@%s' % (AUTHOR, HOST),76 self._commit(root, changeset.date, '%s@%s' % (AUTHOR, HOST), 78 77 BOOTSTRAP_PATCHNAME % module, 79 78 BOOTSTRAP_CHANGELOG % locals(), -
vcpx/bzr.py
r393 r426 61 61 ExternalCommand(cwd=root, command=cmd).execute(old, new) 62 62 63 def initializeNewWorkingDir(self, root, repository, module, subdir, revision): 63 def initializeNewWorkingDir(self, root, repository, module, subdir, 64 changeset): 64 65 """ 65 66 Initialize a new working directory, just extracted from … … 67 68 """ 68 69 69 from datetime import datetime70 70 from target import AUTHOR, HOST, BOOTSTRAP_PATCHNAME, \ 71 71 BOOTSTRAP_CHANGELOG 72 72 73 now = datetime.now()74 73 self._initializeWorkingDir(root, repository, module, subdir) 75 self._commit(root, now, AUTHOR,74 self._commit(root, changeset.date, AUTHOR, 76 75 BOOTSTRAP_PATCHNAME % module, 77 76 BOOTSTRAP_CHANGELOG % locals(), -
vcpx/session.py
r418 r426 499 499 500 500 try: 501 self.source_revision= dwd.checkoutUpstreamRevision(501 actual = dwd.checkoutUpstreamRevision( 502 502 self.current_directory, self.source_repository, 503 503 self.source_module, revision, … … 506 506 self.__err('Checkout failed', True) 507 507 return 508 509 self.source_revision = actual.revision 508 510 509 511 self.writeStateFile() … … 514 516 self.source_module, 515 517 self.sub_directory, 516 self.source_revision)518 actual) 517 519 except: 518 520 self.__err('Working copy initialization failed', True)
Note: See TracChangeset
for help on using the changeset viewer.
