DescriptionThis 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 #
MessagesTotal messages: 9
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||