Closed Bug 282387 Opened 20 years ago Closed 8 years ago

wanted: simple way of getting either single files and/or a portion (not all) of the mozilla source via web interface (bonsai?)

Categories

(Webtools Graveyard :: Bonsai, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jmsachs, Assigned: tara)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

sigh. I am just interested in getting the /mozilla/xpcom portion of the mozilla
source. CVS is not an option for me -- our company blocks access to all ports
but a few (FTP + HTTP being the primary exceptions), plus I'm having a lot of
trouble figuring all this stuff out.

When I am browsing via bonsai (e.g. this page:
http://bonsai.mozilla.org/rview.cgi?cvsroot=/cvsroot&dir=mozilla/xpcom&module=MozillaSource
) it would be nice if there were a button that when I clicked it, a .zip file
was generated & downloaded containing all the files in this directory & below.
I'm willing to deal w/ a delay or even have them emailed to me.

Another frustration has to do with LXR, I can look at an annotated source file
easily enough
(e.g. http://lxr.mozilla.org/mozilla/source/xpcom/sample/nsTestSample.cpp ) but
cannot download the raw file. Maybe I'm missing something obvious, but it seems
there should be a link to a plain copy of the file itself.
You have gone this far toward making it easy for people to examine the source
files, why leave off that step?

Reproducible: Always
>but cannot download the raw file

it's possible - add ?raw=1 to the URL.
[Maybe this should be reassigned to LXR rather than bonsai]

>it's possible - add ?raw=1 to the URL.
thank you, that makes life quite a bit easier. Is this documented anywhere?
(wish I had known that before spending a few hours trying to write an autoparser
to strip out the annotations & handle spaces correctly :/  )
A link to the raw source would be a bit easier, for now I have a bookmarklet
that adds ?raw=1.

I guess if there's no easy way to download a branch (rather than the full 36MB
mozilla source), my present tactic is going to be to use curl/wget to download
LXR's raw output at the root of the desired branch, then use some kind of a
script to parse the HTML file, figure out which are the subdirectories & which
are the subfiles, download each in sequence. Ugly/wasteful but automatic. 

Putting CSS class info in LXR output would make the output more machine-readable
, not that it was intended for this purpose.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
you can also access CVS/Entries items from lxr, no neither is documented, they're part of gospel. the way people learn about ?raw=1 is from looking at how lxr serves images.
QA Contact: timeless → bonsai
Bonsai was decommissioned, closing all remaining bugs "wontfix"
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.