Handle added and deleted empty files in 'rbt patch'.
Review Request #5938 — Created June 5, 2014 and submitted — Latest diff uploaded
Added and deleted empty files were simply ignored when running
rbt patchon
SVN, Mercurial, and Perforce repositories sincepatchdoes not handle empty
files.Now, we do extra processing after running
patchto manually check for and
handle any added or deleted empty files in the patch file. These empty files
are expected to have a diff in the same format as that generated byrbt post.
- Ran unit tests.
- Created several review requests using
rbt poston SVN, Mercurial, and
Perforce repositories with different diffs: no empty files, an added empty
file, a deleted empty file, multiple added and deleted empty files, and
multiple added/deleted empty and non-empty files. Ranrbt patchand
verified that the empty files were added/deleted (viasvn status, etc.).