Changeset 81 in tailor


Ignore:
Timestamp:
07/12/04 19:02:09 (9 years ago)
Author:
lele@…
Hash name:
20040712170209-97f81-b3080ea317c068caa46bd1ccac21b06af588d62d
Message:

Use right time in the past when asking for upstream CVS changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r80 r81  
    2929 
    3030class CvsLog(SystemCommand): 
    31     COMMAND = "cvs log -N -S %(branch)s %(since)s" 
     31    COMMAND = "cvs log -N -S %(branch)s %(since)s 2>/dev/null" 
    3232        
    3333    def __call__(self, output=None, dry_run=False, **kwargs): 
    3434        since = kwargs.get('since') 
    3535        if since: 
    36             kwargs['since'] = "-d'%s<'" % since.isoformat(sep=' ') 
     36            kwargs['since'] = "-d'%s<'" % since 
    3737        else: 
    3838            kwargs['since'] = '' 
     
    213213        from os.path import join, exists 
    214214 
    215         entries = CvsEntries(root) 
    216         latest = entries.getMostRecentEntry() 
    217         since = latest.timestamp 
    218  
     215        if not sincerev: 
     216            entries = CvsEntries(root) 
     217            latest = entries.getMostRecentEntry() 
     218            since = latest.timestamp.isoformat(sep=' ') 
     219        else: 
     220            # Assume this is from __getGlobalRevision() 
     221            since = sincerev.split(';')[0] 
     222             
    219223        branch = '' 
    220224        fname = join(root, 'CVS', 'Tag') 
Note: See TracChangeset for help on using the changeset viewer.