Changeset 1349 in tailor


Ignore:
Timestamp:
04/02/07 22:28:09 (6 years ago)
Author:
lele@…
Hash name:
20070402202809-97f81-99f4ceabcab676f9cd0b8b6af8379ff29a9ece3d
Message:

Possibile fix for #118 and others

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/cvsps.py

    r1329 r1349  
    486486 
    487487            applied = False 
     488 
     489            # applied become True when an entry is DELETED *and* there is 
     490            # no metainfo for it: thus, a changeset that removes a few entries 
     491            # very late in history would be assumed as applied. Prevent that 
     492            # by checking for at least one explicit match on an existing entry. 
     493            onepositive = False 
     494 
    488495            for m in cs.entries: 
    489496                info = entries.getFileInfo(m.name) 
     
    503510                    if not applied: 
    504511                        break 
     512                    else: 
     513                        onepositive = True 
    505514                elif m.action_kind == ChangesetEntry.DELETED: 
    506515                    applied = True 
    507             return applied 
     516            return applied and onepositive 
    508517 
    509518        # We cannot stop at the first not-applied cset, because it may 
Note: See TracChangeset for help on using the changeset viewer.