/* * aegis - project change supervisor * Copyright (C) 1997, 1998 Peter Miller; * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: report the files in a change */ auto script_name; script_name = getenv("SCRIPT_NAME"); if (script_name == "") script_name = "http://localhost/cgi-bin/aegis.cgi"; columns({width = 1000;}); print("Content-Type: text/html"); print(""); print(""); print("Change Files"); print("

"); auto pn, cn; pn = project_name(); cn = change_number(); print("Project ``" ## quote_html(pn) ## "'', Change " ## cn ## ","); print("
List of Files"); print("

"); auto ps; ps = project[pn].state.branch; auto cs; cs = ps.change[cn]; auto src; auto viz; viz = (cs.state >= being_developed && cs.state <= being_integrated); print("
"); print(""); for (src in cs.src) { print(""); } print("
TypeActionEditFile Name
"); print(src.usage); print(""); print(src.action); print(""); if (src.edit_number_origin != "" && src.edit_number != "") { if (src.edit_number_origin == src.edit_number) print(src.edit_number); else print(src.edit_number_origin ## " -> " ## src.edit_number); } else if (src.edit_number_origin != "") print(src.edit_number_origin); else if (src.edit_number != "") print(src.edit_number); if (src.edit_number_origin_new != "") print("
{cross " ## src.edit_number_origin_new ## "}"); print("
"); auto href; if (viz) { href = script_name ## "?file@pre+" ## quote_url(src.file_name); href = href ## "+project@" ## quote_url(pn); href = href ## "+change@" ## cn; print(""); } print("" ## quote_html(src.file_name) ## ""); if (viz) print(""); if (src.deleted_by) print("
Deleted by change " ## src.deleted_by ## "."); if (src.about_to_be_created_by) print("
About to be created by change " ## src.about_to_be_created_by ## "."); if (src.locked_by) print("
Locked by change " ## src.locked_by ## "."); if (src.about_to_be_copied_by) print("
About to be copied by change " ## src.about_to_be_copied_by ## "."); if (src.move != "") { print("
Moved " ## (src.action == create ? "from" : "to")); href = script_name ## "?file@file_menu+" ## quote_url(src.move); href = href ## "+project@" ## quote_url(pn); print(""); print("" ## src.move ## ""); } print("
"); href = script_name ## "?file@file_menu+" ## quote_url(src.file_name); href = href ## "+project@" ## quote_url(pn); href = href ## "+change@" ## cn; print(""); print("fm"); print("
"); print("Listed " ## count(keys(cs.src)) ## " files."); print("
"); print("A similar report may be obtained from the command line, with one of"); print("
ael cf -p " ## quote_html(pn) ## " -c " ## cn);
print("aer cf -p " ## quote_html(pn) ## " -c " ## cn ## "
"); print("
"); print("This page was generated " ## now() ## "."); print("");