Changeset 156 in tailor for vcpx/cvs.py


Ignore:
Timestamp:
09/02/04 16:47:48 (9 years ago)
Author:
lele@…
Hash name:
20040902144748-e4df3-b4043801cda00a591ea1f341de1ec92af57b42d0
Message:

Recognize new entries not reported by CVS log
Sometime it is not possibile to discriminate between a change and an
addition of an entry from the CVS log. To avoid the problem, double
check each touched entry looking for it in the CVS/Entries file: if
it's not already there, assume an addition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r149 r156  
    299299                     repository=repository, module=module) 
    300300        for cs in changesets_from_cvslog(log, module): 
     301            for e in cs.entries: 
     302                # If the entry is not already there, and, for whatever 
     303                # reason (most probably, manually tweaked CVS 
     304                # repository), from the log we desumed it's an update, 
     305                # consider it as a NEW entry instead. 
     306                 
     307                if (e.action_kind == e.UPDATED and 
     308                    entries.getFileInfo(e.name) is None): 
     309                    e.action_kind = e.ADDED 
     310                     
    301311            changesets.append(cs) 
    302312 
Note: See TracChangeset for help on using the changeset viewer.