Changeset 452 in tailor
- Timestamp:
- 07/30/05 02:55:40 (8 years ago)
- Hash name:
- 20050730005540-97f81-edbbc8a775d04189061a4ecb509351c9d2f915ae
- Location:
- vcpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vcpx/target.py
r445 r452 316 316 raise "%s should override this method" % self.__class__ 317 317 318 def prepareWorkingDirectory(self, root, target_repository, target_module): 319 """ 320 Do anything required to setup the hosting working directory. 321 """ 322 323 self._prepareTargetRepository(root, target_repository, target_module) 324 self._prepareWorkingDirectory(root, target_repository, target_module) 325 326 def _prepareTargetRepository(self, root, target_repository, target_module): 327 """ 328 Possibly create the repository, when overriden by subclasses. 329 """ 330 331 def _prepareWorkingDirectory(self, root, target_repository, target_module): 332 """ 333 Possibly checkout a working copy of the target VC, that will host the 334 upstream source tree, when overriden by subclasses. 335 """ 336 318 337 def initializeNewWorkingDir(self, root, source_repository, 319 338 source_module, subdir, changeset, initial): -
vcpx/dualwd.py
r451 r452 60 60 # SyncronizableTargetWorkingDir 61 61 62 self.prepareWorkingDirectory = self.target.prepareWorkingDirectory 62 63 self.initializeNewWorkingDir = self.target.initializeNewWorkingDir 63 64 self.commitDelayedChangesets = self.target.commitDelayedChangesets -
vcpx/tailor.py
r446 r452 114 114 self.options.source_module, 115 115 self.options.revision, 116 self.options.target_repository, 117 self.options.target_module, 116 118 self.options.subdir) 117 119 elif self.options.migrate: … … 289 291 290 292 def bootstrap(self, source_kind, target_kind, 291 source_repository, source_module, revision, subdir): 293 source_repository, source_module, revision, 294 target_repository, target_module, subdir): 292 295 """ 293 296 Bootstrap a new tailorized module. 297 298 First of all prepare the target system working directory such that 299 it can host the upstream source tree. This is backend specific. 294 300 295 301 Extract a copy of the ``repository`` at given ``revision`` in the … … 320 326 self.logger.info("getting %s revision '%s' of '%s' from '%s'" % ( 321 327 source_kind, revision, source_module, source_repository)) 328 329 try: 330 dwd.prepareWorkingDirectory(self.root, 331 target_repository, target_module) 332 except: 333 self.logger.exception('Cannot prepare working directory!') 334 raise 322 335 323 336 try: … … 543 556 "backends.", 544 557 default="HEAD"), 558 make_option("-T", "--target-repository", 559 dest="target_repository", metavar="REPOS", default=None, 560 help="Specify the target repository, the one that will " 561 "receive the patches coming from the source one."), 562 make_option("-M", "--target-module", dest="target_module", 563 metavar="MODULE", 564 help="Specify the module on the target repository that will " 565 "actually contain the upstream source tree."), 545 566 make_option("--subdir", metavar="DIR", 546 567 help="Force the subdirectory where the checkout will happen, " … … 663 684 options.source_module, 664 685 options.revision, 686 options.target_repository, 687 options.target_module, 665 688 options.subdir) 666 689 elif options.update:
Note: See TracChangeset
for help on using the changeset viewer.
