Changeset 459 in tailor


Ignore:
Timestamp:
08/02/05 21:51:48 (8 years ago)
Author:
lele@…
Hash name:
20050802195148-97f81-42b3844f3e4ffa084ca28955278c6fe77cf1a8d7
Message:

M-x whitespace-cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/source.py

    r426 r459  
    2727class GetUpstreamChangesetsFailure(Exception): 
    2828    "Failure getting upstream changes" 
    29      
     29 
    3030    pass 
    3131 
    3232class ChangesetApplicationFailure(Exception): 
    3333    "Failure applying upstream changes" 
    34      
     34 
    3535    pass 
    3636 
    3737class InvocationError(Exception): 
    3838    "Bad invocation, use --help for details" 
    39      
     39 
    4040    pass 
    4141 
     
    4949    getUpstreamChangesets 
    5050        to query the upstream server about new changesets 
    51      
     51 
    5252    applyUpstreamChangesets 
    5353        to apply them to the working directory 
     
    5656        to extract a new copy of the sources, actually initializing 
    5757        the mechanism. 
    58        
     58 
    5959    Subclasses MUST override at least the _underscoredMethods. 
    6060    """ 
     
    8383            if not self._willApplyChangeset(root, c, applyable): 
    8484                continue 
    85              
     85 
    8686            if logger: 
    8787                logger.info("Applying changeset %s", c.revision) 
     
    9595                    logger.debug(str(c)) 
    9696                raise 
    97              
     97 
    9898            if res: 
    9999                conflicts.append((c, res)) 
     
    107107                replay(root, module, c, delayed_commit=delayed_commit, 
    108108                       logger=logger) 
    109              
     109 
    110110            if applied: 
    111111                applied(root, c) 
    112112 
    113113            last = c 
    114              
     114 
    115115        return last, conflicts 
    116116 
     
    134134        sources since last sync, returning a sequence of Changesets 
    135135        instances. 
    136          
     136 
    137137        This method must be overridden by subclasses. 
    138138        """ 
    139139 
    140140        raise "%s should override this method" % self.__class__ 
    141          
     141 
    142142    def _applyChangeset(self, root, changeset, logger=None): 
    143143        """ 
     
    164164 
    165165        :module: the name of the module to extract 
    166          
     166 
    167167        :revision: extract that revision/branch 
    168168 
     
    174174        if not repository: 
    175175            raise InvocationError("Must specify an upstream repository") 
    176          
     176 
    177177        return self._checkoutUpstreamRevision(root, repository, 
    178178                                              module, revision, 
    179179                                              **kwargs) 
    180          
     180 
    181181    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
    182182                                  subdir=None, logger=None, **kwargs): 
     
    184184        Concretely do the checkout of the upstream revision. 
    185185        """ 
    186          
     186 
    187187        raise "%s should override this method" % self.__class__ 
Note: See TracChangeset for help on using the changeset viewer.