Review Request #34 — Created May 28, 2007 and discarded

Information

Review Board SVN (deprecated)
trunk

Reviewers

A patch that adds an extra field file while parsing because the CVS tool I'm working on is needing this as lsdiff strips this field from the uploaded diff.

I'm not sure this is the "right" way to do it, but atleast I've done something that can be changed :-)
It works for me(tm). I've only tested on my own scmtool.
david
  1. This is a good start.
  2. trunk/reviewboard/diffviewer/parser.py (Diff revision 1)
     
     
     
    Is there any way to do this inside the UploadDiffForm and avoid passing the tool to parse() here?
    1. Ok, uploaded new patch which moves completly the parsing into the scmtool.
  3. trunk/reviewboard/diffviewer/forms.py (Diff revision 1)
     
     
     
     
     
    I'm not fond of this special casing.  Can we just change everything to add a third argument that gets ignored in the svn/perforce tools?
  4. trunk/reviewboard/scmtools/core.py (Diff revision 1)
     
     
    Trailing whitespace here.
  5. 
      
chipx86
  1. On top of what David said, a couple small issues.
  2. trunk/reviewboard/diffviewer/parser.py (Diff revision 1)
     
     
     
    Should be 4 spaces here as well.
  3. trunk/reviewboard/diffviewer/forms.py (Diff revision 1)
     
     
     
     
    4 space indentation.
  4. 
      
david
  1. Is this the entire diff?  Even without your tool code (which I'd love to see), it seems like this needs something in the diffparser to populate the "content" field of the file.
  2. 
      
Loading...