Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Improved descriptions of the two check-ins being compared on the vdiff page. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
6b22a464d7ff59a29a455792e948f06d |
| User & Date: | drh 2012-09-06 20:31:18.526 |
Context
|
2012-09-07
| ||
| 19:16 | Add an authorizer to the raw-SQL entry box. This authorizer is not strictly necessary for security. It is just another layer of defense. ... (check-in: 98f29f24cd user: drh tags: trunk) | |
| 07:55 | merge trunk ... (check-in: af4287ac3a user: jan.nijtmans tags: unicode-cmdline) | |
|
2012-09-06
| ||
| 20:31 | Improved descriptions of the two check-ins being compared on the vdiff page. ... (check-in: 6b22a464d7 user: drh tags: trunk) | |
| 19:52 | On the check-in info page, offer a selection of nearby leaves to diff against. ... (check-in: 238db72dc9 user: drh tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
829 830 831 832 833 834 835 | } return manifest_get(rid, CFTYPE_MANIFEST); } /* ** Output a description of a check-in */ | | | > > > < > > | > > > > > > > | | > > > > > > > > > > > > > > > > > > > > | | 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 |
}
return manifest_get(rid, CFTYPE_MANIFEST);
}
/*
** Output a description of a check-in
*/
static void checkin_description(int rid){
Stmt q;
db_prepare(&q,
"SELECT datetime(mtime), coalesce(euser,user),"
" coalesce(ecomment,comment), uuid,"
" (SELECT group_concat(substr(tagname,5), ', ') FROM tag, tagxref"
" WHERE tagname GLOB 'sym-*' AND tag.tagid=tagxref.tagid"
" AND tagxref.rid=blob.rid AND tagxref.tagtype>0)"
" FROM event, blob"
" WHERE event.objid=%d AND type='ci'"
" AND blob.rid=%d",
rid, rid
);
while( db_step(&q)==SQLITE_ROW ){
const char *zDate = db_column_text(&q, 0);
const char *zUser = db_column_text(&q, 1);
const char *zUuid = db_column_text(&q, 3);
const char *zTagList = db_column_text(&q, 4);
Blob comment;
int wikiFlags = WIKI_INLINE;
if( db_get_boolean("timeline-block-markup", 0)==0 ){
wikiFlags |= WIKI_NOBLOCK;
}
hyperlink_to_uuid(zUuid);
blob_zero(&comment);
db_column_blob(&q, 2, &comment);
wiki_convert(&comment, 0, wikiFlags);
blob_reset(&comment);
@ (user:
hyperlink_to_user(zUser,zDate,",");
if( zTagList && zTagList[0] && g.perm.Hyperlink ){
int i;
const char *z = zTagList;
Blob links;
blob_zero(&links);
while( z && z[0] ){
for(i=0; z[i] && (z[i]!=',' || z[i+1]!=' '); i++){}
blob_appendf(&links,
"%z%#h</a>%.2s",
href("%R/timeline?r=%#t&nd&c=%s",i,z,zDate), i,z, &z[i]
);
if( z[i]==0 ) break;
z += i+2;
}
@ tags: %s(blob_str(&links)),
blob_reset(&links);
}else{
@ tags: %h(zTagList),
}
@ date:
hyperlink_to_date(zDate, ")");
}
db_finalize(&q);
}
/*
** WEBPAGE: vdiff
|
| ︙ | ︙ |