Changeset 23 in tailor for vcpx/svn.py


Ignore:
Timestamp:
06/22/04 10:20:21 (9 years ago)
Author:
lele@…
Hash name:
20040622082021-97f81-eb98333004c26196dca5b5ca6b4d8bc9491e40de
Message:

Catch the conflicts under svn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r19 r23  
    193193    def _applyChangeset(self, root, changeset): 
    194194        svnup = SvnUpdate(working_dir=root) 
    195         svnup(entry='.', revision=changeset.revision)        
     195        out = svnup(output=True, entry='.', revision=changeset.revision)        
     196        result = {} 
     197        for line in out: 
     198            if len(line)>2 and line[0] == 'C' and line[1] == ' ': 
     199                try: result[line[0]].append(line[2:-1]) 
     200                except KeyError: result[line[0]] = [line[2:-1]] 
     201             
     202        return result 
    196203         
    197204    ## SyncronizableTargetWorkingDir 
Note: See TracChangeset for help on using the changeset viewer.