Changeset 1624 in tailor


Ignore:
Timestamp:
06/05/08 02:00:15 (5 years ago)
Author:
lele@…
Hash name:
20080605000015-97f81-67ba6ed10052d880714669d213baae9c1c9bbc45
Message:

Use rsync --delete when the target is darcs
The darcs target backend now writes directly to the pending file to
assemble new patches, and thus it assumes the source already applied
all the changes, in particular removed deleted files.

Location:
vcpx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/darcs/__init__.py

    r1574 r1624  
    2121class DarcsRepository(Repository): 
    2222    METADIR = '_darcs' 
     23 
     24    # Darcs needs the deletion, because of the new way the backend assemble 
     25    # the new patches by writing directly to the pending file. 
     26    EXTRA_RSYNC_FLAGS = ['--delete'] 
    2327 
    2428    def _load(self, project): 
  • vcpx/dualwd.py

    r1623 r1624  
    120120            if not (now-last).seconds: 
    121121                cmd.append('--ignore-times') 
     122        # Add per target specific flags 
     123        if self.target.repository.EXTRA_RSYNC_FLAGS: 
     124            cmd.extend(self.target.repository.EXTRA_RSYNC_FLAGS) 
    122125        self._last_rsync = now 
    123126        for md in IGNORED_METADIRS: 
  • vcpx/repository/__init__.py

    r1605 r1624  
    3636    """ 
    3737    The name of the external command line tool, for some backends. 
     38    """ 
     39 
     40    EXTRA_RSYNC_FLAGS = None 
     41    """ 
     42    Particular flags for rsync, used by disjunct working dirs. 
    3843    """ 
    3944 
Note: See TracChangeset for help on using the changeset viewer.