gecko-dev/webtools/bonsai
1998-11-12 02:30:55 +00:00
..
addcheckin.tcl Munge the username to a proper email address before sending mail. 1998-07-27 20:57:51 +00:00
admin.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
adminfuncs.tcl Expand email addresses properly when sending tree opened, tree closed notices. 1998-07-27 21:10:16 +00:00
adminmail.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
bonsai_faq.txt Adding the first pass at a bonsai faq. This answers some administration 1998-10-07 19:29:26 +00:00
bonsai.gif Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
branchspam.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
branchspammer.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
CGI.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
changebar.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
closemessage Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
contacthelp.html Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
countcheckins.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
createlegaldirs.tcl Patches by Matthew Wilson <msw@gimp.org> -- added much of the missing configuration ability. 1998-06-29 16:21:41 +00:00
cvsblame.cgi cvsquery now helps 3.0 JS avoid 'event has no properties' errors. 1998-09-10 07:27:31 +00:00
cvsblame.pl Use time2str instead of ctime; ctime seems to return different things on different systems. 1998-06-26 18:37:51 +00:00
cvsguess.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
cvsindex.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
cvslog.cgi cvsquery now helps 3.0 JS avoid 'event has no properties' errors. 1998-09-10 07:27:31 +00:00
cvsmenu.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
cvsquery.cgi Detect things we can't automatically back out, and say so. 1998-10-14 23:13:04 +00:00
cvsquery.pl added doesn't match regular expression where regular expressions are handled. 1998-10-08 22:01:36 +00:00
cvsqueryform.cgi added doesn't match regular expression where regular expressions are handled. 1998-10-08 22:01:36 +00:00
cvsregexp.html Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
cvsview2.cgi Pull netscape-specific hack. 1998-09-09 20:00:33 +00:00
doadmin.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
doeditcheckin.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
doeditmessage.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
doeditprofile.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
doeditwhiteboard.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
dolog.pl Mention the file 'checkoutlist' (as suggested by Todd Kennedy 1998-09-30 01:22:33 +00:00
dotweak.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
editcheckin.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
editmessage.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
editprofile.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
editwhiteboard.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
globals.tcl Deal better with % in the middle of usernames. 1998-07-27 20:53:06 +00:00
handleAdminMail.tcl Don't hardcode the bonsai directory name. 1998-06-22 15:43:47 +00:00
handleCheckinMail.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
header.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
index.html Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
indextest.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
INSTALL Put in some pointers to dolog.pl. 1998-09-29 17:33:37 +00:00
lloydcgi.pl More patches from Matthew Wilson <msw@gimp.org> -- keep popup layer location; quote some URLs better. 1998-06-26 19:00:22 +00:00
localprofile.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
Makefile More fixes. 1998-08-31 03:57:13 +00:00
maketables.sh Made the people:who field large enough for username%domain 1998-08-31 01:08:41 +00:00
moduleanalyse.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
modules.pl It turns out that blank lines were being skipped a little too 1998-09-24 18:31:05 +00:00
multidiff.cgi Needs to loadConfigData() so that it can get the value of $rcsdiffcommand. 1998-07-06 16:50:08 +00:00
myglobrecur.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
openmessage Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
perlifyconfig.tcl Patches by Matthew Wilson <msw@gimp.org> -- added much of the missing configuration ability. 1998-06-29 16:21:41 +00:00
processqueue.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
profile.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
README Added the maintainer's email address. 1998-11-03 23:55:25 +00:00
rebuildcvshistory.cgi Patches by Matthew Wilson <msw@gimp.org> -- added much of the missing configuration ability. 1998-06-29 16:21:41 +00:00
rebuilddatabase.tcl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
rebuildtaginfo.cgi Patches by Matthew Wilson <msw@gimp.org> -- added much of the missing configuration ability. 1998-06-29 16:21:41 +00:00
repophook.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
reposfiles.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
rview.cgi Patch from Matthew Wilson <msw@gimp.org> -- keep the popup layer in a reasonable place on the screen. 1998-06-26 18:12:08 +00:00
show2.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
showcheckins.cgi Fix the lines removed count in the +/- column 1998-09-14 22:58:53 +00:00
SourceChecker.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
SourceChecker.pm Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
switchtree.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
testlock.pl Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
toplevel.cgi first pass to remove http://warp links and update bonsai documentation 1998-11-12 02:30:55 +00:00
trapdoor.c Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00
utils.pl Implement CheckHidden(), so that we can have some semblance of security. 1998-06-18 16:47:00 +00:00
viewold.cgi Bonsai and Tinderbox have been freed. 1998-06-16 21:43:24 +00:00

This is Bonsai.  See <http://www.mozilla.org/bonsai.html>.


	==========
	DISCLAIMER
	==========

This is not very well packaged code.  It's not packaged at all.  Don't
come here expecting something you plop in a directory, twiddle a few
things, and you're off and using it.  Much work has to be done to get
there.  We'd like to get there, but it wasn't clear when that would be,
and so we decided to let people see it first.

Don't believe for a minute that you can use this stuff without first
understanding most of the code.

Check out the INSTALL file for some guidance on getting started.
Many, many thanks to Artem Belevich <abelevic@ctron.com> for
trailblazing his way through this and writing down all the problems he
had.


	============================
	Configuration files you need
	============================

Lots of configuration files need to be placed in the data subdir.
This is also where bonsai keeps its running state.  These two things
ought to be split into different directories, but that hasn't happened
yet.

Some of these files are:

configdata: 	some TCL source that defines treelist, a list of trees you want
		to track, and treedata, information about each of those trees.
		A sample configdata:

	set treelist {default newlayout}

	set treeinfo(default,module) MozillaSource
	set treeinfo(default,branch) {}
	set treeinfo(default,repository) {/cvsroot}
	set treeinfo(default,description) {Mozilla Source Code}
	set treeinfo(default,shortdesc) {Mozilla}

	set treeinfo(newlayout,module) Raptor
	set treeinfo(newlayout,branch) {}
	set treeinfo(newlayout,repository) {/cvsroot}
	set treeinfo(newlayout,description) {New Layout -- Main Line}
	set treeinfo(newlayout,shortdesc) {New Layout}

		Also, you can specify where Bonsai will look for some utilities
		on your system, and a couple other behaviors.  You will
		probably have to override many of these; the default values are
		not that reasonable.

		The default values are:

	set cvscommand /tools/ns/bin/cvs
	set rlogcommand /tools/ns/bin/rlog
	set rcsdiffcommand /tools/ns/bin/rcsdiff
	set cocommand /tools/ns/bin/co
	set lxr_base http://cvs-mirror.mozilla.org/webtools/lxr/source
	set mozilla_lxr_kludge TRUE



hidelist:	A list of regexps that define filenames that we don't want
		to let people see via the bonsai pages.  A common use is to
		just have one line that says "CVSROOT".

	=================================
	What's What in the Bonsai sources:
	=================================

This is a rough first pass at cataloging and documenting the Bonsai
sources.  Many hands have been in this code over the years, and it has
accreted wildly.  There is probably quite a lot of dead code in here.


CGI.tcl			???

Makefile:		builds the "trapdoor" program.  Also has a
			"make install" that lets you specify where you store
			perl and mysqltcl on your system.

SourceChecker.cgi	scc wrote to help sanitize code.  DELETE
			Called by: nobody

SourceChecker.pm	???

addcheckin.tcl		TCL. Add a checkin to a Bonsai hook. Determines
			if the tree was open or closed at the time, shunts
			checkin to proper tree.

admin.cgi		TCL.  Select from various administrative tasks 
			(which require a password.)

			Called by: toplevel.cgi

			Calls:
				doadmin.cgi password=<text> treeid=<text>
					command=[open|close]
					closetimestamp=<time-text>
					lastgood=<time-text>
					doclear=<checkbox>

				doadmin.cgi password=<text> treeid=<text>
					command=tweaktimes
					lastgood=<time-text>
					lastclose=<time-text>

				doadmin.cgi password=<text> treeid=<text>
					command=editmotd
					origmotd=<text>
					motd=<text>

				editmessage.cgi treeid=<text>
					msgname=[openmessage|closemessage|
						 treeopened|treeopenedsamehook|
						 treeclosed]
				    #### note: no password?

				repophook.cgi password=<text> treeid=<text>
					command=repophook
					startfrom=<time-text>

				rebuildtaginfo.cgi password=<text>
					treeid=<text>
					command=rebuildtaginfo

				rebuildcvshistory.cgi password=<text>
					treeid=<text>
					command=rebuildcvs
					startfrom=<time-text>
					firstfile=<time-text>
					subdir=<time-text>

				doadmin.cgi password=<text> treeid=<text>
					command=changepassword
					password=<text>
					newpassword=<text>
					newpassword2=<text>
					doglobal=<radio>

adminfuncs.tcl		TCL. Collection of functions to administrate a Bonsai
			hook.

adminmail.tcl		TCL. Set of routines for opening and closing the
			Bonsai hook based on receipt of e-mail.

bonsai.gif		a bonsai tree.

branchspam.cgi		failed attempt to web-afy branch spam too DELETE
			Called by: nobody
			Calls: branchspammer.cgi

branchspammer.cgi	more garbage
			Called by: branchspam.cgi
			Calls: nobody

changebar.tcl		???

closemessage	 	HTML, text that gets sent to all people on the hook
			when the tree is closed.	

configure/		???

contacthelp.html	???

countcheckins.cgi	TCL.  Draws a graph of checkins for the various
			Bonsai 'hooks'.
			Called by: toplevel.cgi
			Calls: nobody

createlegaldirs.tcl	???

cvsblame.cgi		Runs through a CVS file and tells you who changed what.
			Calls:
				rview.cgi dir= cvsroot= rev= 
				cvsblame.cgi file= rev= root= mark=
				cvsblame.cgi set_line= (cookie magic?)
				cvsblame.cgi root= file= rev= use_html=
			Called by:
				cvsguess.cgi
				moduleanalyse.cgi
			Used to be called by:
				cvslog.cgi

cvsblame.pl		???

cvsguess.cgi		Given a file name, try to figure out what directory 
			it's in.  then link to cvsblame.cgi.  parameters are
			the same.

			Seems to take an exact file name (sans directory),
			then do a redirect to cvsblame.cgi.  If there are
			more than one file of that name, it presents a list.
			This is (I think) redundant with LXR's file name 
			search.

			Calls:
				cvsblame.cgi file= rev= mark= #
			Called by: nobody

cvsindex.pl		???

cvslog.cgi		Web interface to "cvs log".
			Calls:
				rview.cgi dir= cvsroot= rev=
				cvslog.cgi file= root= rev= 
					sort=[revision|date|author]
					author=
				cvsview2.cgi 
					command=DIFF_FRAMESET
					diff_mode=context
					whitespace_mode=show
					root= subdir= file=
					rev1= rev2=
				cvsview2.cgi
					command=DIRECTORY
					subdir= files= root= branch=

			Used to call:
				cvsblame.cgi file= rev= root=

cvsmenu.pl		???

cvsquery.cgi		Displays the results of a query entered in cvsqueryform
			Called by: 
				cvsqueryform.cgi
			Calls:
				cvsqueryform.cgi
				cvsview2 command=DIRECTORY
					subdir= files= branch= root=
				cvsview2.cgi command=DIFF_FRAMESET
					diff_mode=context 
					whitespace_mode=show
					subdir= file= rev1= rev2= root=
				multidiff.cgi name=allchanges cvsroot=
				cvsquery.cgi sortby=
				../registry/who.cgi email=
				http://scopus.mcom.com/bugsplat/show_bug.cgi

cvsquery.pl		???

cvsqueryform.cgi	Main screen to let you query the CVS database.
			Called by:
				cvsblame.cgi
				cvslog.cgi
				cvsquery.cgi
				toplevel.cgi
			Calls:
				cvsregexp.html
				cvsquery.cgi 
					module=[all|allrepositories|?]
					branch=
					branchtype=[match|regexp]
					directory=<text>
					file=<text>
					who=<text>
					whotype=[match|regexp]
					sortby=[Date|Who|File|Change Size]
					date=[hours|day|week|month|all|
						explicit]
					hours=
					mindate=
					maxdate=
					cvsroot=

cvsregexp.html		???

cvsview2.cgi		Lets you view CVS diffs.
			Called by:
				cvsblame.cgi
				cvslog.cgi
				cvsquery.cgi
				show2.cgi
				showcheckins.cgi
			Calls:
				rview.cgi dir= cvsroot= rev=
				cvsview2.cgi subdir= command=DIFF
					root= file= rev1= rev2=
				cvsview2.cgi subdir= command=DIFF_LINKS
					root= file= rev1= rev2=
				cvsview2.cgi subdir= command=DIFF
					root= file= rev1= rev2= #
				cvsview2.cgi subdir= command=DIFF_FRAMESET
					root= file= rev1= rev2=
				cvsview2.cgi subdir= command=DIRECTORY
					root= files= branch= skip=
				cvsview2.cgi subdir= command=LOG
					root= file= rev=

doadmin.cgi		TCL.  Executes admin things asked for in admin.cgi
			Called by:
				admin.cgi
			Calls:
				mailto:clienteng

doeditcheckin.cgi	TCL.  Edits a checkin on the hook.
			Called by:
				editcheckin.cgi
			Calls:
				nobody

doeditmessage.cgi	TCL.  Edits one of the email messages that bonsai sends
			people.
			Called by:
				editmessage.cgi
			Calls:
				nobody

doeditprofile.cgi	TCL.  Edit peoples contact info.  Left-over code from
			before we started getting this info from LDAP.
			Called by:
				editprofile.cgi
			Calls:
				nobody

doeditwhiteboard.cgi	TCL.  Edits the free-for-all whiteboard.
			Called by:
				editwhiteboard.cgi
			Calls:
				nobody

dolog.pl		Perl.  Magic file that causes CVS to send mail to
			Bonsai whenever someone makes a change.  Please read
			the comments towards the beginning for more clues.

dotweak.cgi		TCL.  Tweaks a bunch of checkins in ahook at once.
			Called by:
				show2.cgi
				showcheckins.cgi
			Calls:
				nobody

editcheckin.cgi		TCL.  Edits a checkin on the hook.
			Called by:
				show2.cgi
				showcheckins.cgi
			Calls:
				doeditcheckin.cgi

editmessage.cgi		TCL.  Edits one of the email messages that bonsai sends
			people.
			Called by:
				admin.cgi
			Calls:
				doeditmessage.cgi

editprofile.cgi		TCL.  Edit peoples contact info.  Left-over code from
			before we started getting this info from LDAP.
			Called by:
				localprofile.cgi
			Calls:
				doeditprofile.cgi

editwhiteboard.cgi	TCL.  Edits the free-for-all whiteboard.
			Called by:
				toplevel.cgi
			Calls:
				doeditwhiteboard.cgi

globals.tcl		???

handleAdminMail.tcl 	TCL. Mail is piped to this script and parsed.  
			Calls:
				adminfuncs.tcl	

handleCheckinMail.tcl	TCL. Mail is piped to this script and parsed. It
			then adds a checkin to a Bonsai hook.

header.pl		???

index.html		???

indextest.pl		???

lloydcgi.pl		parses CGI args from $QUERY_STRING and leaves them
			in $form{$key}; and puts cookies in %cookie_jar.
			Calls: nobody
			Called by: everybody

localprofile.cgi	TCL.  Display peoples contact info.  Left-over code
			from before we started getting this info from LDAP.
			Called by:
				nobody
			Calls:
				editprofile.cgi
				profile.cgi

maketables.sh		???
			Unused?

moduleanalyse.cgi	Shows the directories in a module.
			Called by:
				nobody
			Calls:
				moduleanalyse.cgi module=[all|?] cvsroot=
				rview.cgi dir= cvsroot=
				cvsblame.cgi file= root=

modules.pl		???
			Called by:
				branchspam.cgi
				cvsqueryform.cgi
				moduleanalyse.cgi

multidiff.cgi		Implements the "Show me ALL the Diffs" button
			Called by:
				cvsquery.cgi
				show2.cgi
				showcheckins.cgi
			Calls:
				nobody

myglobrecur.tcl		???

openmessage		???

perlifyconfig.tcl	???

processqueue.pl		???

profile.cgi		TCL.  Stupid interface to LDAP to show all the info
			about a person.
			Called by:
				localprofile.cgi
				show2.cgi
			Calls:
				profile.cgi person=

rebuildcvshistory.cgi	TCL.  Admin script to go rebuild the bonsai database 
			from CVS.
			Called by:
				admin.cgi
			Calls:
				nobody

rebuilddatabase.tcl	???

rebuildtaginfo.cgi	TCL.  Half-written piece of junk to try and remember 
			things about tags.   Should probably nuke it.
			Called by:
				admin.cgi

repophook.cgi		TCL.  Rebuilds a bonsai hook from the bonsai database.
			Called by:
				admin.cgi
			Calls:
				nobody

reposfiles.pl		???

rview.cgi		Lets you browse a directory in a CVS repository.
			Called by:
				cvsblame.cgi
				cvslog.cgi
				cvsview2.cgi
				moduleanalyse.cgi
			Calls:
				rview.cgi dir= cvsroot= rev=
				rview.cgi dir= cvsroot= rev= ?=chdir
				rview.cgi dir= cvsroot= rev= ?=Set Branch
				&make_cgi_args ???
				../registry/file.cgi cvsroot= file= dir=

show2.cgi		TCL.  This seems to be a variant on showcheckins.cgi?
			Called by:
				nobody
			Calls:
				dotweak.cgi
				showcheckins.cgi [various funky args]
				editcheckin.cgi id= [various funky args]w
				profile.cgi person= [various funky args]
				cvsview2.cgi subdir= files= command=DIRECTORY
					branch=
				http://w3/cgi/cvsview2.cgi subdir= files=
					command=DIRECTORY
				multidiff.cgi allchanges=

showcheckins.cgi	TCL.  Shows some set of checkins in a bonsai hook.
			Called by:
				admin.cgi
				show2.cgi
				toplevel.cgi
			Calls:
				dotweak.cgi
				showcheckins.cgi [various funky args]
				editcheckin.cgi id= [various funky args]w
				http://phonebook/ds/dosearch/phonebook/...
				cvsview2.cgi root= subdir= files= 
					command=DIRECTORY branch=
				http://w3/cgi/cvsview2.cgi subdir= files=
					command=DIRECTORY
				multidiff.cgi allchanges=

status/			???

switchtree.cgi		TCL.  Lets you choose a different bonsai branch.
			Called by:
				toplevel.cgi
			Calls:
				nobody

testlock.pl		???

toplevel.cgi		TCL.  Main interface to the bonsai hook.
			Called by:
				CGI.tcl
				contacthelp.html
				index.html
				sheriff2.html
				switchtree.cgi
				toplevel.cgi
				viewold.cgi
			Calls:
				editwhiteboard.cgi [...]
				http://phonebook/ds/dosearch/phonebook/...
				showcheckins.cgi
				http://warp/tinderbox/showbuilds.cgi
				switchtree.cgi [...]
				news:mcom.dev.client.build.busted
				http://phonebook/
				viewold.cgi [...]
				countcheckins.cgi [...]
				admin.cgi [...]
				index.html
				http://warp/client/dogbert/tree.html
				contacthelp.html
				http://warp/client/dogbert/buildlore/index.html

trapdoor.c		???

utils.pl		???

viewold.cgi		TCL.  Lets you choose an old bonsai hook to view.
			Called by:
				toplevel.cgi
			Calls:
				toplevel.cgi treeid=


	=================
	Glossary of terms
	=================

Here are some funky terms you may find here and there:

Hook			The 'hook' is actually the oldest part of the Bonsai
			code.  The idea is, every so often (at Netscape, it was
			every day), some build engineers will close the tree
			and make sure that everything still builds properly.
			If it doesn't, then the build engineers want to have a
			list of people they can go beat up, this being the list
			of people who changed the tree since the last time they
			successfully built the tree.  Those people are "on the
			hook"; they are held responsible for any probs that
			arise.

			So, it works out to: the list of people who have
			checked in since the tree was last closed.


	==========
	Maintainer
	==========

The current primary maintainer of Bonsai is Terry Weissman <terry@mozilla.org>.