Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(33)

Issue 1026: base files uploading (works both over web and upload.py), Mercurial patches

Can't Edit
Can't Publish+Mail
Start Review
Created:
18 years ago by ondrej.certik
Modified:
16 years, 10 months ago
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This includes the patch in the issue: http://codereview.appspot.com/955 and then contains a new code to allow uploading of the base files over the web interface. It probably needs some small polishing, maybe moving the Upload Base from the main view to the patch page, so that we don't have to guess which patch it belongs to? Guido's guidelines: " 1. Allow base=None (or '') and recognize that it means that the base file contents will be uploaded separately, later. If patch.content is None, the side-by-side diff will be unavailable in this case until the contents is uploaded. 2. Add a new API, /<issue>/content, which can be used to upload the contents of one or more patches. When a POST command is sent here, it reads from stdin a multipart/mixed document containing one or or more files, and updates the corresponding patch.content for each file. The upload script should batch up small files if possible, but since uploads are limited to 1MB, it should also allow breaking uploads in multiple steps. " The 1. is more or less done, the 2. partially (only web interface and only 1 whole file at a time) -- the differences were just that I was hacking this patch in a train without a net connection, so I just vaguely remembered what to do. After the feedback, let's agree on some way and do it.

Patch Set 1 #

Patch Set 2 : upload.py can upload base files, and codereview understands Mercurial patches #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -21 lines) Patch
Makefile View 1 chunk +1 line, -1 line 0 comments Download
codereview/engine.py View 3 chunks +26 lines, -1 line 0 comments Download
codereview/models.py View 3 chunks +11 lines, -3 lines 1 comment Download
codereview/patching.py View 2 chunks +8 lines, -2 lines 2 comments Download
codereview/urls.py View 1 1 chunk +2 lines, -0 lines 0 comments Download
codereview/views.py View 1 6 chunks +69 lines, -3 lines 0 comments Download
static/upload.py View 1 6 chunks +71 lines, -11 lines 5 comments Download
templates/issue.html View 1 chunk +3 lines, -0 lines 1 comment Download
templates/upload_base.html View 1 chunk +14 lines, -0 lines 2 comments Download

Messages

Total messages: 9
Andi
http://codereview.appspot.com/1026/diff/1/4 File codereview/models.py (right): http://codereview.appspot.com/1026/diff/1/4#newcode65 Line 65: base = None Did you mean base = ...
18 years ago (2008-05-21 11:24:21 UTC) #1
ondrej.certik
Thanks for the review. I didn't fix those problems yet as I was concentrating on ...
18 years ago (2008-05-26 01:33:02 UTC) #2
GvR
Please remove the code for recognizing Mercurial style patches. Instead, upload.py should convert the diff ...
18 years ago (2008-05-28 00:07:32 UTC) #3
ondrej.certik
The upload.py changes are here: http://codereview.appspot.com/1026/diff/161/181 Yes, the code is rough, it's just the first ...
18 years ago (2008-05-28 00:16:28 UTC) #4
GvR
OK, I'm not opposed to having some mechanism for maintaining metadata in the patch, but ...
18 years ago (2008-05-28 00:20:46 UTC) #5
Antoine Pitrou
Please accept my humble comments, although I'm no rietveld developer :-) http://codereview.appspot.com/1026/diff/161/181 File static/upload.py (right): ...
17 years, 11 months ago (2008-06-18 13:06:40 UTC) #6
Andi Albrecht
[removed my gmail address]
17 years, 11 months ago (2008-06-18 13:14:11 UTC) #7
GvR
This probably requires some work, since much of the affected code has been changed. Possibly ...
17 years, 11 months ago (2008-07-15 18:14:24 UTC) #8
Andi Albrecht
17 years, 10 months ago (2008-08-13 04:46:12 UTC) #9
On 2008/07/15 18:14:24, GvR wrote:
> This probably requires some work, since much of the affected code has been
> changed. Possibly some if it has already been submitted. Perhaps the issue
> should be closed?

Yes, I think you can close this. Your new mercurial patch is much more up to
date...
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b