Changeset 54 in tailor


Ignore:
Timestamp:
07/06/04 03:48:43 (9 years ago)
Author:
lele@…
Hash name:
20040706014843-97f81-e40b9db70bea9352b339b860dc2f6a3f93fb6fb6
Message:

Do not execute 'cvs update' against the same revision as the current one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r52 r54  
    198198        from os import makedirs 
    199199         
     200        entries = CvsEntries(root) 
     201         
    200202        cvsup = CvsUpdate(working_dir=root) 
    201203        for e in changeset.entries: 
    202             edir = dirname(join(root, e.name)) 
    203             if e.action_kind != e.DELETED and not exists(edir): 
    204                 makedirs(edir) 
    205  
     204            if e.action_kind == e.UPDATED: 
     205                info = entries.getFileInfo(e.name) 
     206                if info and info.cvs_version == e.new_revision: 
     207                    if logger: logger.debug("skipping '%s' since it's already " 
     208                                            "at revision %s", e.name, 
     209                                            e.new_revision) 
     210                    continue 
     211                 
    206212            cvsup(output=True, entry=e.name, revision=e.new_revision) 
    207213 
Note: See TracChangeset for help on using the changeset viewer.