• 
      

    Don't crash if ClearCase/VersionVault directory changes include symlinks.

    Review Request #12624 — Created Sept. 22, 2022 and submitted

    Information

    RBTools
    release-3.x

    Reviewers

    ClearCase and VersionVault can track symbolic links, which don't seem to show up
    as elements of their own, but do show up in directory diffs. The way these were
    represented (as filename1 -> filename2) was then crashing when trying to
    query the OID.

    This change wraps that section of our directory processing in a try/except, so
    we can log the error and continue on. The result of this is that changes which
    include added or deleted symlinks will post without errors. The resulting diff
    will show the added line in the directory listing.

    Testing Done:

    Posted activity changes which involved symbolic links. Saw the expected diffs
    instead of having rbt post crash.

    Summary ID
    Don't crash if ClearCase/VersionVault directory changes include symlinks.
    ClearCase and VersionVault can track symbolic links, which don't seem to show up as elements of their own, but do show up in directory diffs. The way these were represented (as `filename1 -> filename2`) was then crashing when trying to query the OID. This change wraps that section of our directory processing in a try/except, so we can log the error and continue on. The result of this is that changes which include added or deleted symlinks will post without errors. The resulting diff will show the added line in the directory listing. Testing Done: Posted activity changes which involved symbolic links. Saw the expected diffs instead of having `rbt post` crash.
    4062262022377cd23887c4ac4984d3571e834bcc
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.x (00ce03b)