Handle case of no empty files

Review Request #7683 — Created Oct. 9, 2015 and submitted

Information

RBTools
release-0.7.x

Reviewers

Mercurial's locate command will exit with status 1 when no files are
found. We use hg locate -r <REV> set:size(0) to locate empty files.
However, when there are no empty files, we will get None instead of
empty output because of Mercurial's status code. We now only try to
parse the list of files when there is output to avoid this issue.

Ran unit tests.

rbt post worked with this patch and didn't without it.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbtools/clients/mercurial.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbtools/clients/mercurial.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.7.x (6bbcecc)