Changeset 188 in tailor for vcpx/tailor.py


Ignore:
Timestamp:
12/27/04 22:03:13 (8 years ago)
Author:
lele@…
Hash name:
20041227210313-97f81-9d067907aacf7f01b341fefbaf24c3a6a5521dd1
Message:

Better error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r187 r188  
    266266        self.logger.info("getting %s revision '%s' of '%s' from '%s'" % ( 
    267267            source_kind, revision, module, repository)) 
    268         actual = dwd.checkoutUpstreamRevision(self.root, repository, 
    269                                               module, revision, 
    270                                               subdir=subdir, 
    271                                               logger=self.logger) 
    272  
     268 
     269        try: 
     270            actual = dwd.checkoutUpstreamRevision(self.root, repository, 
     271                                                  module, revision, 
     272                                                  subdir=subdir, 
     273                                                  logger=self.logger) 
     274        except: 
     275            self.logger.exception('Checkout failed!') 
     276            raise 
     277         
    273278        # the above machinery checked out a copy under of the wc 
    274279        # in the directory named as the last component of the module's name 
     
    276281        if not subdir: 
    277282            subdir = module 
    278              
    279         dwd.initializeNewWorkingDir(self.root, repository, subdir, actual) 
    280  
     283 
     284        try: 
     285            dwd.initializeNewWorkingDir(self.root, repository, subdir, actual) 
     286        except: 
     287            self.logger.exception('Working copy initialization failed!') 
     288            raise 
     289         
    281290        self.source_kind = source_kind 
    282291        self.target_kind = target_kind 
     
    339348            if self.verbose: 
    340349                print "Applying %d upstream changesets" % nchanges 
     350 
     351            try: 
     352                l,c = dwd.applyUpstreamChangesets(proj, changesets, 
     353                                                  applyable=self.applyable, 
     354                                                  applied=self.applied, 
     355                                                  logger=self.logger, 
     356                                                  delayed_commit=single_commit) 
     357            except: 
     358                self.logger.exception('Upstream change application failed') 
    341359                 
    342             l,c = dwd.applyUpstreamChangesets(proj, changesets, 
    343                                               applyable=self.applyable, 
    344                                               applied=self.applied, 
    345                                               logger=self.logger, 
    346                                               delayed_commit=single_commit) 
    347360            if l: 
    348361                if single_commit: 
Note: See TracChangeset for help on using the changeset viewer.