Changeset 1228 in tailor


Ignore:
Timestamp:
08/07/06 23:05:05 (7 years ago)
Author:
lele@…
Hash name:
20060807210505-97f81-0ebd515dccc4755f7ffea7d72aaeac2b7db4dfd6
Message:

Explain a bit more the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/cvsps.py

    r1227 r1228  
    471471            for m in cs.entries: 
    472472                info = entries.getFileInfo(m.name) 
     473 
     474                # If the entry's info exists, compare the on-disk 
     475                # version with what we have: the revision is already 
     476                # applied if the former is greater or equal than the 
     477                # latter. The same if the info does not exist and it's 
     478                # a delete event. 
     479 
    473480                if info: 
    474481                    odversion = info.cvs_version 
    475482                    applied = compare_cvs_revs(odversion, m.new_revision) >= 0 
     483 
     484                    # If only one "hunk" is not yet applied, the whole 
     485                    # changeset is new. 
    476486                    if not applied: 
    477487                        break 
Note: See TracChangeset for help on using the changeset viewer.