Changeset 1151 in tailor for vcpx/cvs.py


Ignore:
Timestamp:
05/28/06 09:34:22 (7 years ago)
Author:
jeremy.barnes@…
Hash name:
20060528073422-0ac44-d367fa9e6a08b7f4320533a3813f8415a8d6c449
Message:

Skip CVS revision on the wrong branch
CVS has a bug with the rlog command when using -r:branch syntax,
which leads to changesets on the wrong branch being listed in the
log. This would lead to a "Something went wrong: unable to determine
the exact upstream revision of the checked out tree" error, since the
date of the incorrect revision was much earlier than the date of the
branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r1095 r1151  
    402402                if cs is None: 
    403403                    break 
     404 
    404405                date,author,changelog,e,rev,state,newentry = cs 
     406 
     407                # CVS seems to sometimes mess up what it thinks the branch is... 
     408                if not cvs_revs_same_branch(normalize_cvs_rev(rev), branchnum): 
     409                    self.log.warning("Skipped revision %s on entry %s " 
     410                                     "as revision didn't match branch revision %s " 
     411                                     "for branch %s" 
     412                                     % (str(normalize_cvs_rev(rev)), entry, 
     413                                        str(branchnum), str(branch))) 
     414                    expected_revisions -= 1 
     415                    continue 
    405416 
    406417                # Skip spurious entries added in a branch 
Note: See TracChangeset for help on using the changeset viewer.