Improve 'rbt patch' usage for Hg by overriding apply_patch()

Review Request #6012 — Created June 20, 2014 and submitted

Information

RBTools
release-0.6.x

Reviewers

By default 'rbt patch' uses GNU patch with a prefix value of 0. With Mercurial, patches often fail to apply because they're fetched from Review Board with the git-style prefixes 'a/' and 'b/'. Also, on Windows the binaries available are very outdated and the only way to get a new version is to install Cygwin.

Avoid these problems by overriding apply_patch() and running 'hg patch' instead.


 
david
  1. Ship It!

  2. 
      
BC
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.6.x (edf81db)
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        rbtools/clients/mercurial.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        rbtools/clients/mercurial.py
    
    
  2.