Changeset 325 in tailor
- Timestamp:
- 05/24/05 11:06:24 (8 years ago)
- Hash name:
- 20050524090624-97f81-7c42a92db1909678b103257ed8fd59d9a5ae760e
- File:
-
- 1 edited
-
vcpx/session.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/session.py
r323 r325 64 64 self.state_file = 'tailor.state' 65 65 66 self.changesets = None67 66 self.logfile = None 68 67 self.logger = None … … 426 425 self.sub_directory, 427 426 actual) 428 except :427 except Exception, exc: 429 428 self.__err('Working copy initialization failed: %s, %s' % (exc.__doc__, exc)) 430 429 if self.logger: … … 471 470 """ 472 471 472 from dualwd import DualWorkingDir 473 from os.path import join 474 473 475 source_revision = self.readSourceRevision() 474 if self.source_kind and \ 475 self.source_repository and \ 476 self.source_module and \ 477 source_revision: 478 476 if source_revision: 477 repodir = join(self.current_directory, self.sub_directory) 479 478 dwd = DualWorkingDir(self.source_kind, self.target_kind) 480 self.changesets = dwd.getUpstreamChangesets(self.current_directory,481 self.source_repository,482 self.source_module,483 source_revision)479 changesets = dwd.getUpstreamChangesets(repodir, 480 self.source_repository, 481 self.source_module, 482 source_revision) 484 483 nchanges = len(changesets) 485 484 if nchanges: … … 487 486 488 487 if arg: 489 appl iable = self.willApply488 applyable = self.willApply 490 489 try: 491 490 howmany = min(int(arg), nchanges) … … 494 493 except ValueError: 495 494 if arg.lower() == 'ask': 496 appl iable = self.shouldApply495 applyable = self.shouldApply 497 496 498 497 try: 499 498 last, conflicts = dwd.applyUpstreamChangesets( 500 proj, self.module, changesets, applyable=applyable,501 appl ied=self.applied, logger=self.logger,502 delayed_commit=single_commit)499 repodir, self.source_module, changesets, 500 applyable=applyable, applied=self.applied, 501 logger=self.logger) # , delayed_commit=single_commit) 503 502 except: 504 503 if self.logger: … … 515 514 self.__log("Update completed with no upstream changes") 516 515 else: 517 self.__err("needs 'source_kind', 'source_repository' and " 518 "'source_module' to proceed.\n") 516 self.__err("Not yet bootstrapped!\n") 519 517 520 518
Note: See TracChangeset
for help on using the changeset viewer.
