Handle added and deleted empty files in 'rbt patch'.

Review Request #5938 — Created June 5, 2014 and submitted

Information

RBTools
master
43bf8ea...

Reviewers

Added and deleted empty files were simply ignored when running rbt patch on
SVN, Mercurial, and Perforce repositories since patch does not handle empty
files.

Now, we do extra processing after running patch to 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 by rbt post.

  • Ran unit tests.
  • Created several review requests using rbt post on 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. Ran rbt patch and
    verified that the empty files were added/deleted (via svn status, etc.).
Description From Last Updated

Col: 13 E129 visually indented line with same indent as next logical line

reviewbotreviewbot

rbtools still needs to support Python 2.5, so this should be except IOError, e

daviddavid

Col: 17 E129 visually indented line with same indent as next logical line

reviewbotreviewbot

Here too.

daviddavid

Here too.

daviddavid

Col: 13 E129 visually indented line with same indent as next logical line

reviewbotreviewbot

Col: 17 E129 visually indented line with same indent as next logical line

reviewbotreviewbot
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/commands/patch.py
        rbtools/clients/__init__.py
        rbtools/clients/mercurial.py
        rbtools/utils/filesystem.py
        rbtools/clients/perforce.py
        rbtools/clients/svn.py
      Ignored Files:
    
    
  2. rbtools/clients/__init__.py (Diff revision 1)
     
     
    Show all issues
    Col: 13
     E129 visually indented line with same indent as next logical line
    
  3. rbtools/clients/__init__.py (Diff revision 1)
     
     
    Show all issues
    Col: 17
     E129 visually indented line with same indent as next logical line
    
  4. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        rbtools/commands/patch.py
        rbtools/clients/__init__.py
        rbtools/clients/mercurial.py
        rbtools/utils/filesystem.py
        rbtools/clients/perforce.py
        rbtools/clients/svn.py
      Ignored Files:
    
    
  2. 
      
david
  1. Looks pretty great. Just one small thing in three places.

  2. rbtools/clients/__init__.py (Diff revision 1)
     
     
    Show all issues

    rbtools still needs to support Python 2.5, so this should be except IOError, e

  3. rbtools/utils/filesystem.py (Diff revision 1)
     
     
    Show all issues

    Here too.

  4. rbtools/utils/filesystem.py (Diff revision 1)
     
     
    Show all issues

    Here too.

  5. 
      
anselina
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/commands/patch.py
        rbtools/clients/__init__.py
        rbtools/clients/mercurial.py
        rbtools/utils/filesystem.py
        rbtools/clients/perforce.py
        rbtools/clients/svn.py
      Ignored Files:
    
    
  2. rbtools/clients/__init__.py (Diff revision 2)
     
     
    Show all issues
    Col: 13
     E129 visually indented line with same indent as next logical line
    
  3. rbtools/clients/__init__.py (Diff revision 2)
     
     
    Show all issues
    Col: 17
     E129 visually indented line with same indent as next logical line
    
  4. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        rbtools/commands/patch.py
        rbtools/clients/__init__.py
        rbtools/clients/mercurial.py
        rbtools/utils/filesystem.py
        rbtools/clients/perforce.py
        rbtools/clients/svn.py
      Ignored Files:
    
    
  2. 
      
anselina
Review request changed
Status:
Completed
Change Summary:
Pushed to master (48ba9d4)
anselina
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.6.x (48ba9d4)
david
  1. Ship It!

  2.