CVSTrac Legacy Code

Check-in [1bdc8232d2]
Login

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

Overview
Comment:(#797) make sure we get latest change date relative to specified directory
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1bdc8232d2407514e65bf5506cd5ff33dba7b090
User & Date: ono 2009-05-15 13:55:24
Context
2009-05-15
21:59
(#39) diff coloring using DIVs and stylesheets classes =diffx= where =x= is *h*eader, *c*hunk, *t*ext, *a*dded, *r*emoved check-in: 864223dd4b user: ono tags: trunk
13:55
(#797) make sure we get latest change date relative to specified directory check-in: 1bdc8232d2 user: ono tags: trunk
12:32
*: Download tarball is now directory browse action, rather than separate link *: Tarball now contains version and subdirectory only if necessary *: Determines modification date using filechng table *: Subversion now fixed for UNIX environment, also supports pure =tar=, =tar.gz= and =tar.bz2= *: GIT implementation using =git archive= check-in: 8c8238f05e user: ono tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to browse.c.

988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
  ** to pull from from the repository, so we might as well try this first.
  */
  char *z = zDir && zVers ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.filename LIKE '%q/%%' "
                           "  AND filechng.vers='%q' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY filename ASC, vers DESC LIMIT 1",
                           zDir, zVers) :
            zDir ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.filename LIKE '%q/%%' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY filename ASC, vers DESC LIMIT 1",
                           zDir) :
            zVers ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.vers='%q' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY filename ASC, vers DESC LIMIT 1",
                           zVers) :
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.cn=chng.cn "
                           "ORDER BY filename ASC, vers DESC LIMIT 1");
  if( z ){
    cgi_modified_since(atoi(z));
    cgi_append_header(mprintf("Last-Modified: %h\r\n",
                      cgi_rfc822_datestamp(atoi(z))));
    free(z);
  }








|





|





|



|







988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
  ** to pull from from the repository, so we might as well try this first.
  */
  char *z = zDir && zVers ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.filename LIKE '%q/%%' "
                           "  AND filechng.vers='%q' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY chng.cn DESC LIMIT 1",
                           zDir, zVers) :
            zDir ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.filename LIKE '%q/%%' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY chng.cn DESC LIMIT 1",
                           zDir) :
            zVers ?
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.vers='%q' "
                           "  AND filechng.cn=chng.cn "
                           "ORDER BY chng.cn DESC LIMIT 1",
                           zVers) :
            db_short_query("SELECT chng.date FROM filechng, chng "
                           "WHERE filechng.cn=chng.cn "
                           "ORDER BY chng.cn DESC LIMIT 1");
  if( z ){
    cgi_modified_since(atoi(z));
    cgi_append_header(mprintf("Last-Modified: %h\r\n",
                      cgi_rfc822_datestamp(atoi(z))));
    free(z);
  }