Issue 416: Link to /cat/ download URL on side-by-side views
Status:  Released
Owner: ----
Closed:  Oct 2012
Reported by jessewil...@google.com, Jan 22, 2010
Sometimes in order to review code, I'd like to download it to my desktop. This 
might be so that I can compile it and run it, or to run tools against it (Javadoc, 
for example).

Gerrit doesn't let me do this. When I use copy&paste, I get an unholy mess of 
line numbers from both the left-hand and right-hand documents.
Jan 23, 2010
#1 sop@google.com
Why can't you just use the git pull line on the change page?
Git will download the file(s) for you, patch them into your
workspace, and let you work from there.  Copying and pasting
from the web UI is error prone, especially with the table in
its current form.
Status: WontFix
Jan 25, 2010
#2 jessewil...@google.com
We agree that copy&paste from the current web UI is bad; I was hoping you could add 
another servlet to download the raw files.

Git pull only works if I have a client ready to accept the change. This isn't always 
the case (because I'm doing a code review on a bus, or because my Git clients are busy 
compiling...).
Jan 25, 2010
#3 sop@google.com
We do have a servlet that returns raw file contents... but for
security reasons it tends to return them in a zipped archive,
making them a bit more difficult to work with.

 $GERRIT_URL/cat/42,1,src/foo.c

Will return the new content of file src/foo.c from change 42,
in patch set 1.

Its not documented because we only use it with the binary
files, like an image or font file.  I guess we can revive
this bug as a feature request to make that URL visible on
the side-by-side viewer.
Summary: Link to /cat/ download URL on side-by-side views
Status: Accepted
Jan 25, 2010
#4 sop@google.com
Change Ie619207fe744824aed69603fe48d2a8520b9bd5d adds (Download)
links to point to the /cat/ servlet.
Status: Fixed
Labels: FixedIn-2.1.2
Oct 21, 2012
#5 sop@google.com
(No comment was entered for this change.)
Status: Released