Fix the default revision for existing/deleted files when parsing DiffX.

Review Request #11770 — Created Aug. 3, 2021 and submitted

Information

Review Board
release-4.0.x

Reviewers

An issue was also found where deleted files in a DiffX were getting a
default revision of PRE_CREATION, which caused the deleted file to
show up as new. This should have only occurred for newly-created files.

Now, missing revisions show up as UNKNOWN, making it more clear that
the revision is missing, and avoiding accidentally triggering this bad
state.

Unit tests pass on Python 2 and 3.

Tested this in production and verified that it fixed an issue with a
file appearing as new when it should have appeared as deleted.

Summary ID
Fix the default revision for existing/deleted files when parsing DiffX.
An issue was also found where deleted files in a DiffX were getting a default revision of `PRE_CREATION`, which caused the deleted file to show up as new. This should have only occurred for newly-created files. Now, missing revisions show up as `UNKNOWN`, making it more clear that the revision is missing, and avoiding accidentally triggering this bad state.
7be9d7de16d637a7544bd4903f996c9107930b42
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (19de9c1)
Loading...