Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | For the "version information" web pages, change the default behavior to only show the list of files that changed, not the diffs. But there is a link to get diffs of all files or of individual files. The default behavior can be changed using a Setup/Timeline configuration option to show diffs by default. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 0f4f6c032587c3bb2ba4c15cabe80226 |
User & Date: | drh 2009-12-18 23:54:24 |
Context
2009-12-19
| ||
03:16 | Fix a segfault that occurs on an attempt to merge binary files. Ticket [3f2cb270b2f6]. check-in: 8e147fdb user: drh tags: trunk | |
2009-12-18
| ||
23:54 | For the "version information" web pages, change the default behavior to only show the list of files that changed, not the diffs. But there is a link to get diffs of all files or of individual files. The default behavior can be changed using a Setup/Timeline configuration option to show diffs by default. check-in: 0f4f6c03 user: drh tags: trunk | |
23:09 | Remove dead code from timeline.c. Make sure all shortened UUIDs have at least one hexadecimal digit greater than '9' to avoid confusing them with decimal numbers. check-in: 74534cc9 user: drh tags: trunk | |
Changes
Changes to src/info.c.
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 ... 366 367 368 369 370 371 372 373 374 375 376 377 378 379 ... 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
/* ** WEBPAGE: vinfo ** WEBPAGE: ci ** URL: /ci?name=RID|ARTIFACTID ** ** Display information about a particular check-in. */ void ci_page(void){ Stmt q; int rid; int isLeaf; login_check_credentials(); if( !g.okRead ){ login_needed(); return; } rid = name_to_rid(PD("name","0")); if( rid==0 ){ style_header("Check-in Information Error"); @ No such object: %h(g.argv[2]) style_footer(); return; } isLeaf = !db_exists("SELECT 1 FROM plink WHERE pid=%d", rid); ................................................................................ }else{ style_header("Check-in Information"); login_anonymous_available(); } db_finalize(&q); showTags(rid, ""); @ <div class="section">Changes</div> db_prepare(&q, "SELECT pid, fid, name, substr(a.uuid,1,10), substr(b.uuid,1,10)" " FROM mlink JOIN filename ON filename.fnid=mlink.fnid" " LEFT JOIN blob a ON a.rid=pid" " LEFT JOIN blob b ON b.rid=fid" " WHERE mlink.mid=%d" " ORDER BY name", ................................................................................ continue; }else{ @ <p>Changes to %h(zName)</p> } }else if( zOld && zNew ){ @ <p>Modified <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ from <a href="%s(g.zBaseURL)/artifact/%s(zOld)">[%s(zOld)]</a> @ to <a href="%s(g.zBaseURL)/artifact/%s(zNew)">[%s(zNew)]</a></p> }else if( zOld ){ @ <p>Deleted <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ version <a href="%s(g.zBaseURL)/artifact/%s(zOld)">[%s(zOld)]</a></p> continue; }else{ @ <p>Added <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ version <a href="%s(g.zBaseURL)/artifact/%s(zNew)">[%s(zNew)]</a></p> } @ <blockquote><pre> append_diff(pid, fid); @ </pre></blockquote> } db_finalize(&q); style_footer(); } /* ** WEBPAGE: winfo |
| > > > > > > > > > > > | > > > > > > > > > > > > > > > | > > > > > | | | > |
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 ... 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 ... 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
/* ** WEBPAGE: vinfo ** WEBPAGE: ci ** URL: /ci?name=RID|ARTIFACTID ** ** Display information about a particular check-in. ** ** We also jump here from /info if the name is a version. ** ** If the /ci page is used (instead of /vinfo or /info) then the ** default behavior is to show unified diffs of all file changes. ** With /vinfo and /info, only a list of the changed files are ** shown, without diffs. This behavior is inverted if the ** "show-version-diffs" setting is turned on. */ void ci_page(void){ Stmt q; int rid; int isLeaf; int showDiff; const char *zName; login_check_credentials(); if( !g.okRead ){ login_needed(); return; } zName = PD("name","0"); rid = name_to_rid(zName); if( rid==0 ){ style_header("Check-in Information Error"); @ No such object: %h(g.argv[2]) style_footer(); return; } isLeaf = !db_exists("SELECT 1 FROM plink WHERE pid=%d", rid); ................................................................................ }else{ style_header("Check-in Information"); login_anonymous_available(); } db_finalize(&q); showTags(rid, ""); @ <div class="section">Changes</div> showDiff = g.zPath[0]!='c'; if( db_get_boolean("show-version-diffs", 0)==0 ){ showDiff = !showDiff; if( showDiff ){ @ <a href="%s(g.zBaseURL)/vinfo/%T(zName)">[hide diffs]</a><br/> }else{ @ <a href="%s(g.zBaseURL)/ci/%T(zName)">[show diffs]</a><br/> } }else{ if( showDiff ){ @ <a href="%s(g.zBaseURL)/ci/%T(zName)">[hide diffs]</a><br/> }else{ @ <a href="%s(g.zBaseURL)/vinfo/%T(zName)">[show diffs]</a><br/> } } db_prepare(&q, "SELECT pid, fid, name, substr(a.uuid,1,10), substr(b.uuid,1,10)" " FROM mlink JOIN filename ON filename.fnid=mlink.fnid" " LEFT JOIN blob a ON a.rid=pid" " LEFT JOIN blob b ON b.rid=fid" " WHERE mlink.mid=%d" " ORDER BY name", ................................................................................ continue; }else{ @ <p>Changes to %h(zName)</p> } }else if( zOld && zNew ){ @ <p>Modified <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ from <a href="%s(g.zBaseURL)/artifact/%s(zOld)">[%s(zOld)]</a> @ to <a href="%s(g.zBaseURL)/artifact/%s(zNew)">[%s(zNew)].</a> if( !showDiff ){ @ @ <a href="%s(g.zBaseURL)/fdiff?v1=%d(pid)&v2=%d(fid)">[diff]</a> } }else if( zOld ){ @ <p>Deleted <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ version <a href="%s(g.zBaseURL)/artifact/%s(zOld)">[%s(zOld)]</a></p> continue; }else{ @ <p>Added <a href="%s(g.zBaseURL)/finfo?name=%T(zName)">%h(zName)</a> @ version <a href="%s(g.zBaseURL)/artifact/%s(zNew)">[%s(zNew)]</a></p> } if( showDiff ){ @ <blockquote><pre> append_diff(pid, fid); @ </pre></blockquote> } } db_finalize(&q); style_footer(); } /* ** WEBPAGE: winfo |
Changes to src/setup.c.
768
769
770
771
772
773
774
775
776
777
778
779
780
781
...
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
|
@ <hr> onoff_attribute("Use Universal Coordinated Time (UTC)", "timeline-utc", "utc", 1); @ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or @ Zulu) instead of in local time.</p> @ <hr> entry_attribute("Max timeline comment length", 6, "timeline-max-comment", "tmc", "0"); @ <p>The maximum length of a comment to be displayed in a timeline. @ "0" there is no length limit.</p> @ <hr> ................................................................................ @ <hr> onoff_attribute("Automatically synchronize with repository", "autosync", "autosync", 1); @ <p>Automatically keeps your work in sync with a centralized server.</p> @ <hr> onoff_attribute("Show javascript button to fill in CAPTCHA", "auto-captcha", "auto-captcha", 0); @ <p>When enabled, a button appears on the login screen for user @ "anonymous" that will automatically fill in the CAPTCHA password. @ This is less secure that forcing the user to do it manually, but is @ usually secure enough.</p> @ <hr> onoff_attribute("Sign all commits with GPG", |
>
>
>
>
>
>
>
>
|
|
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
...
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
|
@ <hr> onoff_attribute("Use Universal Coordinated Time (UTC)", "timeline-utc", "utc", 1); @ <p>Show times as UTC (also sometimes called Greenwich Mean Time (GMT) or @ Zulu) instead of in local time.</p> @ <hr> onoff_attribute("Show version differences by default", "show-version-diffs", "vdiff", 0); @ <p>On the version-information pages linked from the timeline can either @ show complete diffs of all file changes, or can just list the names of @ the files that have changed. Users can get to either page by @ clicking. This setting selects the default.</p> @ <hr> entry_attribute("Max timeline comment length", 6, "timeline-max-comment", "tmc", "0"); @ <p>The maximum length of a comment to be displayed in a timeline. @ "0" there is no length limit.</p> @ <hr> ................................................................................ @ <hr> onoff_attribute("Automatically synchronize with repository", "autosync", "autosync", 1); @ <p>Automatically keeps your work in sync with a centralized server.</p> @ <hr> onoff_attribute("Show javascript button to fill in CAPTCHA", "auto-captcha", "autocaptcha", 0); @ <p>When enabled, a button appears on the login screen for user @ "anonymous" that will automatically fill in the CAPTCHA password. @ This is less secure that forcing the user to do it manually, but is @ usually secure enough.</p> @ <hr> onoff_attribute("Sign all commits with GPG", |