Changeset 847 in tailor


Ignore:
Timestamp:
09/25/05 01:27:53 (6 years ago)
Author:
lele@…
Hash name:
20050924232753-97f81-1412fca446a5178fc6bc33a1f5c450cccf8b5105
Message:

New option to introduce a delay before each changeset

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vcpx/source.py

    r810 r847  
    7878        - the sequence (potentially empty!) of conflicts. 
    7979        """ 
     80 
     81        from time import sleep 
    8082 
    8183        c = None 
     
    9092                if not self._willApplyChangeset(c, applyable): 
    9193                    break 
     94 
     95                # Sometime is better to wait a little while before each 
     96                # changeset, to avoid upstream server stress. 
     97                if self.repository.delay_before_apply: 
     98                    sleep(self.repository.delay_before_apply) 
    9299 
    93100                try: 
  • README

    r837 r847  
    337337    module = pxlib 
    338338    subdir = original 
     339    delay_before_apply = 10 
    339340 
    340341    [hg:pxlib] 
     
    534535intervention is needed. 
    535536 
     537Sometime the migration is fast enough to put the upstream server under 
     538an excessive load. When this is the case, you may specify 
     539``delay_before_apply = 5``, that is the number of seconds tailor will 
     540wait before applying each changeset. It defaults to None, ie no delay 
     541at all. 
     542 
    536543 
    537544Using a Python script as configuration file 
  • vcpx/repository.py

    r802 r847  
    8686        self.subdir = config.get(self.name, 'subdir', 
    8787                                 vars={'subdir': self.project.subdir}) 
     88        self.delay_before_apply = config.get(self.name, 'delay_before_apply') 
    8889        self.encoding = config.get(self.name, 'encoding') 
    8990        if self.encoding is None: 
Note: See TracChangeset for help on using the changeset viewer.