Refactor the land command.

Review Request #7329 — Created May 22, 2015 and submitted

Information

RBTools
master
f586705...

Reviewers

The rbt land command has been refactored so that the core
functionality of landing a review request onto a branch now lies in
the Land.land method. This results in simplified logic in the main
method and sets up for recursive landing support in a future patch.

Ran unit tests.

Successfully landed review requests using both a source branch and a
review request ID.

Description From Last Updated

This doesn't seem correct. The previous code had it overwriting is_local only when self.options.is_local was provided. Now it sets it …

daviddavid
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        rbtools/commands/land.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        rbtools/commands/land.py
    
    
  2. 
      
david
  1. 
      
  2. rbtools/commands/land.py (Diff revision 1)
     
     
     
    Show all issues

    This doesn't seem correct. The previous code had it overwriting is_local only when self.options.is_local was provided. Now it sets it in the blocks above and then unconditionally overwrites it here.

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbtools/commands/land.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbtools/commands/land.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (0012ffc)
Loading...