Changeset 15 in tailor for vcpx/source.py


Ignore:
Timestamp:
06/20/04 12:05:59 (9 years ago)
Author:
lele@…
Hash name:
20040620100559-97f81-21ba797856dda2064ae74a3695ba41de5c2e72f2
Message:

Dual working directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/source.py

    r14 r15  
    4343        return self._getUpstreamChangesets(self, root) 
    4444         
    45     def applyUpstreamChangesets(self, root, changesets): 
     45    def applyUpstreamChangesets(self, root, changesets, replay=None): 
    4646        """ 
    4747        Apply the collected upstream changes. 
    4848 
    4949        Loop over the collected changesets, doing whatever is needed 
    50         to apply each one to the working dir. 
     50        to apply each one to the working dir and if the changes do 
     51        not raise conflicts call the `replay` function to mirror the 
     52        changes on the target. 
    5153 
    5254        Return a sequence (potentially empty!) of conflicts. 
     
    5860            if res: 
    5961                conflicts.append((c, res)) 
    60  
     62            else: 
     63                if replay: 
     64                    replay(root, c) 
     65                     
    6166        return conflicts 
    6267         
Note: See TracChangeset for help on using the changeset viewer.