CVSTrac Legacy Code

Check-in [d0137d8b19]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:(#764) merge [1010]: don't use CGI output stuff when we don't have a URL. This may not be needed in HEAD, but it certainly won't hurt.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d0137d8b1992983e4e54e7d2da06ce2f4b949d59
User & Date: cpb 2008-10-09 22:59:51
Context
2008-10-11
01:02
(#764) _setup_ permissions should also imply wiki permissions. Simplify the Windows condition slightly. check-in: e1b44eb962 user: cpb tags: trunk
2008-10-09
22:59
(#764) merge [1010]: don't use CGI output stuff when we don't have a URL. This may not be needed in HEAD, but it certainly won't hurt. check-in: d0137d8b19 user: cpb tags: trunk
2008-09-16
15:12
Carriage returns, line feeds and tabs in the command line may make the Windows command line incomplete. check-in: 79df195944 user: ono tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to history.c.

138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155

156
157
158
159
160

161
162
163
164
165
166
167
/*
** This routine is called to complete the generation of an error
** message in the history_update module.
*/
void error_finish(int nErr){
  if( nErr==0 ) return;
  @ </ul>
  common_footer();
  cgi_reply();
  exit(0);
}

/*
** This routine is called whenever an error situation is encountered.
** It makes sure an appropriate header has been issued.
*/
void error_init(int *pnErr){
  if( *pnErr==0 ){

    common_standard_menu(0, 0);
    cgi_reset_content();
    cgi_set_status(200, "OK");
    cgi_set_content_type("text/html");
    common_header("Error Reading Repository");

    @ <p>The following errors occurred while trying to read and
    @ interpret
    if( !strcmp(g.scm.zSCM,"cvs") ){
      @ the CVSROOT/history file from the CVS repository.
    }else{
      @ the %h(g.scm.zName) repository.
    }







|










>
|
|
|
|
|
>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*
** This routine is called to complete the generation of an error
** message in the history_update module.
*/
void error_finish(int nErr){
  if( nErr==0 ) return;
  @ </ul>
  if( g.zPath ) common_footer();
  cgi_reply();
  exit(0);
}

/*
** This routine is called whenever an error situation is encountered.
** It makes sure an appropriate header has been issued.
*/
void error_init(int *pnErr){
  if( *pnErr==0 ){
    if( g.zPath ) {
      common_standard_menu(0, 0);
      cgi_reset_content();
      cgi_set_status(200, "OK");
      cgi_set_content_type("text/html");
      common_header("Error Reading Repository");
    }
    @ <p>The following errors occurred while trying to read and
    @ interpret
    if( !strcmp(g.scm.zSCM,"cvs") ){
      @ the CVSROOT/history file from the CVS repository.
    }else{
      @ the %h(g.scm.zName) repository.
    }