Fossil SCM

Merge from trunk

george 2021-02-25 14:55 UTC wiki-history merge
Commit 7e755346a56adb150dd7aaaf6e8689d73ab12b6470ff673f364df90b2d38159b
167 files changed +1 -1 +1 -1 +1 -1 +2 -1 +1 -1 +1 -1 +49 -49 -3 +21 -3 +1 +1 -1 +16 -41 +2 -2 +11 -31 +14 -5 +19 -47 -13 -391 -3 -8 -71 -115 +19 -69 +49 +4 +6 +22 +1 -10 -3 +11 -38 -228 +13 -5 +1 +10 -34 -71 -3 -24 -68 +24 -5 +2 -2 +8 -31 +2 -3 +22 -3 +95 -36 +26 -18 +8 -37 -197 -3 -1 -44 +15 -41 +2 -2 +15 -10 +1 -1 +10 -5 -1 +55 -20 +6 -3 +33 -18 +59 -12 +1 -1 +2 -2 +24 +3 -4 +17 -4 +35 -16 +2 -1 +13 +1 -1 +46 -25 +66 -34 +31 -15 +3 -3 +9 -6 +1 -1 +5 -5 +1 -1 +1 +37 -10 +255 +1 -1 +1 -1 +1 -1 +1 -1 +1 -1 +10 -7 +155 -32 +17 -15 +17 -15 +1 -1 +5 -6 +27 -20 +4 +11 -1 +1233 -1155 +3 +2 -2 +1 -1 +65 -19 +7 -1 +3 -4 +12 -5 +89 -22 +51 -9 +4954 -4050 +8 -2 +5 -5 +1 -1 +80 -13 +1 -1 +4 -4 +56 -24 +51 -60 +7 -3 +105 +97 -37 +17 -109 +1 -1 +6 +16 -8 +16 -8 +18 -15 +8 +61 -24 +2 -2 -509 +72 -257 +78 +10 -4 +18 -19 +25 -34 +3 -3 +1 -1 +5 -5 +3 -3 +24 +11 +42 -2 +3 -3 +3 -3 +1 -1 +1 -1 +68 -24 +16 -7 +1 -1 +1 -1 +5 -5 +80 -21 +368 +2 -2 +40 -18 +2 -2 +4 -4 +3 +3 -3 +2 -4 +4 -4 +1 -1 +2 -1 +5 -1 +2 -2 +2 -2 +1 -1 +1 -1 +49 +1 -1
~ BUILD.txt ~ Dockerfile ~ VERSION ~ auto.def ~ debian/makedeb.sh ~ fossil.1 ~ setup/fossil.iss - skins/aht/details.txt ~ skins/ardoise/css.txt ~ skins/ardoise/details.txt ~ skins/ardoise/footer.txt ~ skins/ardoise/header.txt ~ skins/black_and_white/css.txt ~ skins/black_and_white/header.txt ~ skins/blitz/css.txt ~ skins/blitz/header.txt - skins/blitz_no_logo/README.md - skins/blitz_no_logo/css.txt - skins/blitz_no_logo/details.txt - skins/blitz_no_logo/footer.txt - skins/blitz_no_logo/header.txt - skins/blitz_no_logo/ticket.txt ~ skins/bootstrap/header.txt ~ skins/darkmode/css.txt ~ skins/darkmode/details.txt ~ skins/darkmode/footer.txt ~ skins/darkmode/header.txt ~ skins/default/css.txt ~ skins/default/footer.txt ~ skins/default/header.txt - skins/default/js.txt ~ skins/eagle/css.txt ~ skins/eagle/details.txt ~ skins/eagle/header.txt - skins/enhanced1/css.txt - skins/enhanced1/details.txt - skins/enhanced1/footer.txt - skins/enhanced1/header.txt ~ skins/khaki/css.txt ~ skins/khaki/details.txt ~ skins/khaki/header.txt ~ skins/original/css.txt ~ skins/original/footer.txt ~ skins/original/header.txt ~ skins/plain_gray/css.txt ~ skins/plain_gray/header.txt - skins/rounded1/css.txt - skins/rounded1/details.txt - skins/rounded1/footer.txt - skins/rounded1/header.txt ~ skins/xekri/header.txt ~ src/add.c ~ src/alerts.c ~ src/allrepo.c ~ src/branch.c ~ src/captcha.c ~ src/cgi.c ~ src/chat.c ~ src/chat.js ~ src/checkin.c ~ src/checkout.c ~ src/clone.c ~ src/color.c ~ src/configure.c ~ src/content.c ~ src/cookies.c ~ src/db.c ~ src/default.css ~ src/diff.c ~ src/diffcmd.c ~ src/dispatch.c ~ src/doc.c ~ src/event.c ~ src/export.c ~ src/file.c ~ src/fileedit.c ~ src/finfo.c ~ src/fossil.pikchr.js ~ src/hbmenu.js + src/hbmenu.js ~ src/http_socket.c ~ src/http_ssl.c ~ src/http_transport.c ~ src/import.c ~ src/json_branch.c ~ src/login.c ~ src/main.c ~ src/main.mk ~ src/main.mk ~ src/makeheaders.html ~ src/makemake.tcl ~ src/manifest.c ~ src/markdown_html.c ~ src/name.c ~ src/pikchr.c ~ src/rebuild.c ~ src/regexp.c ~ src/search.c ~ src/setup.c ~ src/setupuser.c ~ src/sha3.c ~ src/shell.c ~ src/sitemap.c ~ src/skins.c ~ src/sqlite3.c ~ src/sqlite3.h ~ src/stash.c ~ src/stat.c ~ src/style.c ~ src/sync.c ~ src/tag.c ~ src/tar.c ~ src/th.c ~ src/th.h ~ src/th_lang.c ~ src/th_main.c ~ src/timeline.c ~ src/user.c ~ src/util.c ~ src/wiki.c ~ src/wiki.c ~ src/wikiformat.c ~ src/winhttp.c ~ src/zip.c ~ test/release-checklist.wiki - tools/chat.tcl ~ tools/co-rsync.tcl - tools/fossil_chat.tcl ~ tools/skintxt2config.c ~ win/Makefile.dmc ~ win/Makefile.mingw ~ win/Makefile.msc ~ www/aboutcgi.wiki ~ www/alerts.md ~ www/build.wiki ~ www/caps/admin-v-setup.md ~ www/caps/ref.html ~ www/cgi.wiki ~ www/changes.wiki ~ www/checkin.wiki ~ www/checkin_names.wiki ~ www/chroot.md ~ www/concepts.wiki ~ www/customskin.md ~ www/embeddeddoc.wiki ~ www/faq.tcl ~ www/faq.wiki ~ www/fileedit-page.md ~ www/fileformat.wiki ~ www/fossil-is-not-relational.md ~ www/fossil-v-git.wiki ~ www/gitusers.md ~ www/globs.md ~ www/grep.md ~ www/gsoc-ideas.md ~ www/hints.wiki ~ www/index.wiki ~ www/javascript.md ~ www/makefile.wiki ~ www/mkindex.tcl ~ www/permutedindex.html ~ www/qandc.wiki ~ www/quickstart.wiki ~ www/selfhost.wiki ~ www/ssl.wiki ~ www/th1.md ~ www/unvers.wiki
+1 -1
--- BUILD.txt
+++ BUILD.txt
@@ -73,6 +73,6 @@
7373
* The src/mkindex.c program generates some C code that implements
7474
static lookup tables. See the header comment in the source code
7575
for details on what it does.
7676
7777
Additional information on the build process is available from
78
-http://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki
78
+http://fossil-scm.org/home/doc/trunk/www/makefile.wiki
7979
--- BUILD.txt
+++ BUILD.txt
@@ -73,6 +73,6 @@
73 * The src/mkindex.c program generates some C code that implements
74 static lookup tables. See the header comment in the source code
75 for details on what it does.
76
77 Additional information on the build process is available from
78 http://www.fossil-scm.org/fossil/doc/trunk/www/makefile.wiki
79
--- BUILD.txt
+++ BUILD.txt
@@ -73,6 +73,6 @@
73 * The src/mkindex.c program generates some C code that implements
74 static lookup tables. See the header comment in the source code
75 for details on what it does.
76
77 Additional information on the build process is available from
78 http://fossil-scm.org/home/doc/trunk/www/makefile.wiki
79
+1 -1
--- Dockerfile
+++ Dockerfile
@@ -7,11 +7,11 @@
77
RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
88
99
### If you want to build "trunk", change the next line accordingly.
1010
ENV FOSSIL_INSTALL_VERSION release
1111
12
-RUN curl "https://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx
12
+RUN curl "https://fossil-scm.org/home/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx
1313
RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs
1414
RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c
1515
RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil
1616
1717
### Build is done, remove modules no longer needed
1818
--- Dockerfile
+++ Dockerfile
@@ -7,11 +7,11 @@
7 RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
8
9 ### If you want to build "trunk", change the next line accordingly.
10 ENV FOSSIL_INSTALL_VERSION release
11
12 RUN curl "https://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx
13 RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs
14 RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c
15 RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil
16
17 ### Build is done, remove modules no longer needed
18
--- Dockerfile
+++ Dockerfile
@@ -7,11 +7,11 @@
7 RUN dnf update -y && dnf install -y gcc make tcl tcl-devel zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil
8
9 ### If you want to build "trunk", change the next line accordingly.
10 ENV FOSSIL_INSTALL_VERSION release
11
12 RUN curl "https://fossil-scm.org/home/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx
13 RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl=1 --with-tcl-stubs --with-tcl-private-stubs
14 RUN cd fossil-src/src && mv main.c main.c.orig && sed s/\"now\"/0/ <main.c.orig >main.c
15 RUN cd fossil-src && make && strip fossil && cp fossil /usr/bin && cd .. && rm -rf fossil-src && chmod a+rx /usr/bin/fossil && mkdir -p /opt/fossil && chown fossil:fossil /opt/fossil
16
17 ### Build is done, remove modules no longer needed
18
+1 -1
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1
-2.14
1
+2.15
22
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1 2.14
2
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1 2.15
2
+2 -1
--- auto.def
+++ auto.def
@@ -365,11 +365,12 @@
365365
set ldflags [exec pkg-config openssl --libs-only-L]
366366
set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"]
367367
} msg
368368
if {!$found} {
369369
set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \
370
- /usr/pkg /usr/local /usr /usr/local/opt/openssl"
370
+ /usr/pkg /usr/local /usr /usr/local/opt/openssl \
371
+ /opt/homebrew/opt/openssl"
371372
}
372373
}
373374
if {!$found} {
374375
foreach dir $ssldirs {
375376
if {$dir eq ""} {
376377
--- auto.def
+++ auto.def
@@ -365,11 +365,12 @@
365 set ldflags [exec pkg-config openssl --libs-only-L]
366 set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"]
367 } msg
368 if {!$found} {
369 set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \
370 /usr/pkg /usr/local /usr /usr/local/opt/openssl"
 
371 }
372 }
373 if {!$found} {
374 foreach dir $ssldirs {
375 if {$dir eq ""} {
376
--- auto.def
+++ auto.def
@@ -365,11 +365,12 @@
365 set ldflags [exec pkg-config openssl --libs-only-L]
366 set found [check-for-openssl "ssl via pkg-config" "$cflags $ldflags"]
367 } msg
368 if {!$found} {
369 set ssldirs "{} /usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl \
370 /usr/pkg /usr/local /usr /usr/local/opt/openssl \
371 /opt/homebrew/opt/openssl"
372 }
373 }
374 if {!$found} {
375 foreach dir $ssldirs {
376 if {$dir eq ""} {
377
--- debian/makedeb.sh
+++ debian/makedeb.sh
@@ -57,11 +57,11 @@
5757
This package was created by fossil-scm <[email protected]>
5858
on ${PACKAGE_TIME}.
5959
6060
The original sources for fossil can be downloaded for free from:
6161
62
-http://www.fossil-scm.org/
62
+http://fossil-scm.org/
6363
6464
fossil is released under the terms of the 2-clause BSD License.
6565
6666
EOF
6767
}
6868
--- debian/makedeb.sh
+++ debian/makedeb.sh
@@ -57,11 +57,11 @@
57 This package was created by fossil-scm <[email protected]>
58 on ${PACKAGE_TIME}.
59
60 The original sources for fossil can be downloaded for free from:
61
62 http://www.fossil-scm.org/
63
64 fossil is released under the terms of the 2-clause BSD License.
65
66 EOF
67 }
68
--- debian/makedeb.sh
+++ debian/makedeb.sh
@@ -57,11 +57,11 @@
57 This package was created by fossil-scm <[email protected]>
58 on ${PACKAGE_TIME}.
59
60 The original sources for fossil can be downloaded for free from:
61
62 http://fossil-scm.org/
63
64 fossil is released under the terms of the 2-clause BSD License.
65
66 EOF
67 }
68
+1 -1
--- fossil.1
+++ fossil.1
@@ -94,9 +94,9 @@
9494
8.
9595
.B Free and Open-Source
9696
- Uses the 2-clause BSD license.
9797
9898
.SH DOCUMENTATION
99
-http://www.fossil-scm.org/
99
+http://fossil-scm.org/
100100
.br
101101
.B fossil
102102
\fIui\fR
103103
--- fossil.1
+++ fossil.1
@@ -94,9 +94,9 @@
94 8.
95 .B Free and Open-Source
96 - Uses the 2-clause BSD license.
97
98 .SH DOCUMENTATION
99 http://www.fossil-scm.org/
100 .br
101 .B fossil
102 \fIui\fR
103
--- fossil.1
+++ fossil.1
@@ -94,9 +94,9 @@
94 8.
95 .B Free and Open-Source
96 - Uses the 2-clause BSD license.
97
98 .SH DOCUMENTATION
99 http://fossil-scm.org/
100 .br
101 .B fossil
102 \fIui\fR
103
+49 -49
--- setup/fossil.iss
+++ setup/fossil.iss
@@ -1,49 +1,49 @@
1
-;
2
-; Copyright (c) 2014 D. Richard Hipp
3
-;
4
-; This program is free software; you can redistribute it and/or
5
-; modify it under the terms of the Simplified BSD License (also
6
-; known as the "2-Clause License" or "FreeBSD License".)
7
-;
8
-; This program is distributed in the hope that it will be useful,
9
-; but without any warranty; without even the implied warranty of
10
-; merchantability or fitness for a particular purpose.
11
-;
12
-; Author contact information:
13
-; [email protected]
14
-; http://www.hwaci.com/drh/
15
-;
16
-
17
-[Setup]
18
-ArchitecturesAllowed=x86 x64
19
-AlwaysShowComponentsList=false
20
-AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved.
21
-AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c}
22
-AppName=Fossil
23
-AppPublisher=Fossil Development Team
24
-AppPublisherURL=https://www.fossil-scm.org/
25
-AppSupportURL=https://www.fossil-scm.org/
26
-AppUpdatesURL=https://www.fossil-scm.org/
27
-AppVerName=Fossil v{#AppVersion}
28
-AppVersion={#AppVersion}
29
-AppComments=Simple, high-reliability, distributed software configuration management system.
30
-AppReadmeFile=https://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki
31
-DefaultDirName={pf}\Fossil
32
-DefaultGroupName=Fossil
33
-OutputBaseFilename=fossil-win32-{#AppVersion}
34
-OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt
35
-SetupLogging=true
36
-UninstallFilesDir={app}\uninstall
37
-VersionInfoVersion={#AppVersion}
38
-
391
40
-[Components]
41
-Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed
42
-
432
44
-[Dirs]
45
-Name: {app}\bin
46
-
473
48
-[Files]
49
-Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete
50
-
514
52
-[Registry]
53
-Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue
5
+;
6
+; Copyright (c) 2014 D. Richard Hipp
7
+;
8
+; This program is free software; you can redistribute it and/or
9
+; modify it under the terms of the Simplified BSD License (also
10
+; known as the "2-Clause License" or "FreeBSD License".)
11
+;
12
+; This program is distributed in the hope that it will be useful,
13
+; but without any warranty; without even the implied warranty of
14
+; merchantability or fitness for a particular purpose.
15
+;
16
+; Author contact information:
17
+; [email protected]
18
+; http://www.hwaci.com/drh/
19
+;
20
+
21
+[Setup]
22
+ArchitecturesAllowed=x86 x64
23
+AlwaysShowComponentsList=false
24
+AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved.
25
+AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c}
26
+AppName=Fossil
27
+AppPublisher=Fossil Development Team
28
+AppPublisherURL=https://fossil-scm.org/
29
+AppSupportURL=https://fossil-scm.org/
30
+AppUpdatesURL=https://fossil-scm.org/
31
+AppVerName=Fossil v{#AppVersion}
32
+AppVersion={#AppVersion}
33
+AppComments=Simple, high-reliability, distributed software configuration management system.
34
+AppReadmeFile=https://fossil-scm.org/home/doc/tip/www/quickstart.wiki
35
+DefaultDirName={pf}\Fossil
36
+DefaultGroupName=Fossil
37
+OutputBaseFilename=fossil-win32-{#AppVersion}
38
+OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt
39
+SetupLogging=true
40
+UninstallFilesDir={app}\uninstall
41
+VersionInfoVersion={#AppVersion}
42
+
5443
44
+[Components]
45
+Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed
46
+
5547
48
+[Dirs]
49
+Name: {app}\bin
50
+
5651
52
+[Files]
53
+Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete
54
+
5755
56
+[Registry]
57
+Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue
5858
5959
DELETED skins/aht/details.txt
--- setup/fossil.iss
+++ setup/fossil.iss
@@ -1,49 +1,49 @@
1 ;
2 ; Copyright (c) 2014 D. Richard Hipp
3 ;
4 ; This program is free software; you can redistribute it and/or
5 ; modify it under the terms of the Simplified BSD License (also
6 ; known as the "2-Clause License" or "FreeBSD License".)
7 ;
8 ; This program is distributed in the hope that it will be useful,
9 ; but without any warranty; without even the implied warranty of
10 ; merchantability or fitness for a particular purpose.
11 ;
12 ; Author contact information:
13 ; [email protected]
14 ; http://www.hwaci.com/drh/
15 ;
16
17 [Setup]
18 ArchitecturesAllowed=x86 x64
19 AlwaysShowComponentsList=false
20 AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved.
21 AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c}
22 AppName=Fossil
23 AppPublisher=Fossil Development Team
24 AppPublisherURL=https://www.fossil-scm.org/
25 AppSupportURL=https://www.fossil-scm.org/
26 AppUpdatesURL=https://www.fossil-scm.org/
27 AppVerName=Fossil v{#AppVersion}
28 AppVersion={#AppVersion}
29 AppComments=Simple, high-reliability, distributed software configuration management system.
30 AppReadmeFile=https://www.fossil-scm.org/index.html/doc/tip/www/quickstart.wiki
31 DefaultDirName={pf}\Fossil
32 DefaultGroupName=Fossil
33 OutputBaseFilename=fossil-win32-{#AppVersion}
34 OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt
35 SetupLogging=true
36 UninstallFilesDir={app}\uninstall
37 VersionInfoVersion={#AppVersion}
38
39
40 [Components]
41 Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed
42
43
44 [Dirs]
45 Name: {app}\bin
46
47
48 [Files]
49 Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete
50
51
52 [Registry]
53 Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
 
 
55
 
 
 
56
 
 
 
57
 
 
58
59 ELETED skins/aht/details.txt
--- setup/fossil.iss
+++ setup/fossil.iss
@@ -1,49 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
 
 
2
 
 
 
3
 
 
 
4
5 ;
6 ; Copyright (c) 2014 D. Richard Hipp
7 ;
8 ; This program is free software; you can redistribute it and/or
9 ; modify it under the terms of the Simplified BSD License (also
10 ; known as the "2-Clause License" or "FreeBSD License".)
11 ;
12 ; This program is distributed in the hope that it will be useful,
13 ; but without any warranty; without even the implied warranty of
14 ; merchantability or fitness for a particular purpose.
15 ;
16 ; Author contact information:
17 ; [email protected]
18 ; http://www.hwaci.com/drh/
19 ;
20
21 [Setup]
22 ArchitecturesAllowed=x86 x64
23 AlwaysShowComponentsList=false
24 AppCopyright=Copyright (c) D. Richard Hipp. All rights reserved.
25 AppID={{f1c25a1f-3954-4e1a-ac36-4314c52f057c}
26 AppName=Fossil
27 AppPublisher=Fossil Development Team
28 AppPublisherURL=https://fossil-scm.org/
29 AppSupportURL=https://fossil-scm.org/
30 AppUpdatesURL=https://fossil-scm.org/
31 AppVerName=Fossil v{#AppVersion}
32 AppVersion={#AppVersion}
33 AppComments=Simple, high-reliability, distributed software configuration management system.
34 AppReadmeFile=https://fossil-scm.org/home/doc/tip/www/quickstart.wiki
35 DefaultDirName={pf}\Fossil
36 DefaultGroupName=Fossil
37 OutputBaseFilename=fossil-win32-{#AppVersion}
38 OutputManifestFile=fossil-win32-{#AppVersion}-manifest.txt
39 SetupLogging=true
40 UninstallFilesDir={app}\uninstall
41 VersionInfoVersion={#AppVersion}
42
43
44 [Components]
45 Name: Application; Description: Core application.; Types: custom compact full; Flags: fixed
46
47
48 [Dirs]
49 Name: {app}\bin
50
51
52 [Files]
53 Components: Application; Source: ..\fossil.exe; DestDir: {app}\bin; Flags: restartreplace uninsrestartdelete
54
55
56 [Registry]
57 Components: Application; Root: HKLM32; SubKey: Software\Fossil; ValueType: string; ValueName: Install_Dir; ValueData: {app}; Flags: uninsdeletekeyifempty uninsdeletevalue
58
59 ELETED skins/aht/details.txt
D skins/aht/details.txt
-3
--- a/skins/aht/details.txt
+++ b/skins/aht/details.txt
@@ -1,3 +0,0 @@
1
-timeline-arrowheads: 1
2
-timeline-circle-nodes: 0
3
-timeline-color-graph-lines: 0
--- a/skins/aht/details.txt
+++ b/skins/aht/details.txt
@@ -1,3 +0,0 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 0
3 timeline-color-graph-lines: 0
--- a/skins/aht/details.txt
+++ b/skins/aht/details.txt
@@ -1,3 +0,0 @@
 
 
 
--- skins/ardoise/css.txt
+++ skins/ardoise/css.txt
@@ -657,13 +657,15 @@
657657
.content {
658658
padding-top: 8px;
659659
padding-left: 8px;
660660
padding-right: 8px
661661
}
662
+#hbdrop a,
662663
.content a {
663664
color: #8cf
664665
}
666
+#hbdrop a:hover,
665667
.content a:hover,
666668
.submenu a:hover,
667669
.submenu label:hover {
668670
color: #fff
669671
}
@@ -693,20 +695,19 @@
693695
.mainmenu {
694696
background-color: #161819;
695697
border-top-right-radius: 15px;
696698
border-top-left-radius: 15px;
697699
clear: both
700
+ z-index: 21;
698701
}
699702
.mainmenu ul {
700703
list-style: none;
701
- display: block;
702704
border-top: 1px solid transparent;
703705
padding: 0
704706
}
705707
.mainmenu li {
706708
outline: 0;
707
- display: block;
708709
float: left;
709710
margin: 0
710711
}
711712
.mainmenu li.active {
712713
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=);
@@ -713,11 +714,10 @@
713714
background-repeat: no-repeat;
714715
background-position: center bottom
715716
}
716717
.mainmenu li a {
717718
color: #66a8c7;
718
- display: block;
719719
padding: 10px 15px
720720
}
721721
.mainmenu li.active a {
722722
text-shadow: 0 0 1px #b1d2e2
723723
}
@@ -726,10 +726,18 @@
726726
border-radius: 5px
727727
}
728728
.mainmenu li:hover a {
729729
color: #000
730730
}
731
+div#hbdrop {
732
+ background-color: #161819;
733
+ border-radius: 15px;
734
+ display: none;
735
+ width: 100%;
736
+ position: absolute;
737
+ z-index: 20;
738
+}
731739
.submenu {
732740
padding: 4px 0;
733741
background-color: #000;
734742
border-bottom-right-radius: 15px;
735743
border-bottom-left-radius: 15px;
@@ -1393,5 +1401,15 @@
13931401
}
13941402
.debug {
13951403
background-color: #330;
13961404
border: 2px solid #aa0;
13971405
}
1406
+
1407
+.capsumOff {
1408
+ background-color: #222;
1409
+}
1410
+.capsumRead {
1411
+ background-color: #262;
1412
+}
1413
+.capsumWrite {
1414
+ background-color: #662;
1415
+}
13981416
--- skins/ardoise/css.txt
+++ skins/ardoise/css.txt
@@ -657,13 +657,15 @@
657 .content {
658 padding-top: 8px;
659 padding-left: 8px;
660 padding-right: 8px
661 }
 
662 .content a {
663 color: #8cf
664 }
 
665 .content a:hover,
666 .submenu a:hover,
667 .submenu label:hover {
668 color: #fff
669 }
@@ -693,20 +695,19 @@
693 .mainmenu {
694 background-color: #161819;
695 border-top-right-radius: 15px;
696 border-top-left-radius: 15px;
697 clear: both
 
698 }
699 .mainmenu ul {
700 list-style: none;
701 display: block;
702 border-top: 1px solid transparent;
703 padding: 0
704 }
705 .mainmenu li {
706 outline: 0;
707 display: block;
708 float: left;
709 margin: 0
710 }
711 .mainmenu li.active {
712 background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=);
@@ -713,11 +714,10 @@
713 background-repeat: no-repeat;
714 background-position: center bottom
715 }
716 .mainmenu li a {
717 color: #66a8c7;
718 display: block;
719 padding: 10px 15px
720 }
721 .mainmenu li.active a {
722 text-shadow: 0 0 1px #b1d2e2
723 }
@@ -726,10 +726,18 @@
726 border-radius: 5px
727 }
728 .mainmenu li:hover a {
729 color: #000
730 }
 
 
 
 
 
 
 
 
731 .submenu {
732 padding: 4px 0;
733 background-color: #000;
734 border-bottom-right-radius: 15px;
735 border-bottom-left-radius: 15px;
@@ -1393,5 +1401,15 @@
1393 }
1394 .debug {
1395 background-color: #330;
1396 border: 2px solid #aa0;
1397 }
 
 
 
 
 
 
 
 
 
 
1398
--- skins/ardoise/css.txt
+++ skins/ardoise/css.txt
@@ -657,13 +657,15 @@
657 .content {
658 padding-top: 8px;
659 padding-left: 8px;
660 padding-right: 8px
661 }
662 #hbdrop a,
663 .content a {
664 color: #8cf
665 }
666 #hbdrop a:hover,
667 .content a:hover,
668 .submenu a:hover,
669 .submenu label:hover {
670 color: #fff
671 }
@@ -693,20 +695,19 @@
695 .mainmenu {
696 background-color: #161819;
697 border-top-right-radius: 15px;
698 border-top-left-radius: 15px;
699 clear: both
700 z-index: 21;
701 }
702 .mainmenu ul {
703 list-style: none;
 
704 border-top: 1px solid transparent;
705 padding: 0
706 }
707 .mainmenu li {
708 outline: 0;
 
709 float: left;
710 margin: 0
711 }
712 .mainmenu li.active {
713 background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNyIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgNC40OTggMi4zODEiPjxwYXRoIGQ9Ik00LjIzMyAyLjM4MUguMjY1bC45OTgtMS4wNTguOTg2LTEuMDU4Ljk5OCAxLjA2MnoiIGZpbGw9IiNmZjgwMDAiLz48L3N2Zz4=);
@@ -713,11 +714,10 @@
714 background-repeat: no-repeat;
715 background-position: center bottom
716 }
717 .mainmenu li a {
718 color: #66a8c7;
 
719 padding: 10px 15px
720 }
721 .mainmenu li.active a {
722 text-shadow: 0 0 1px #b1d2e2
723 }
@@ -726,10 +726,18 @@
726 border-radius: 5px
727 }
728 .mainmenu li:hover a {
729 color: #000
730 }
731 div#hbdrop {
732 background-color: #161819;
733 border-radius: 15px;
734 display: none;
735 width: 100%;
736 position: absolute;
737 z-index: 20;
738 }
739 .submenu {
740 padding: 4px 0;
741 background-color: #000;
742 border-bottom-right-radius: 15px;
743 border-bottom-left-radius: 15px;
@@ -1393,5 +1401,15 @@
1401 }
1402 .debug {
1403 background-color: #330;
1404 border: 2px solid #aa0;
1405 }
1406
1407 .capsumOff {
1408 background-color: #222;
1409 }
1410 .capsumRead {
1411 background-color: #262;
1412 }
1413 .capsumWrite {
1414 background-color: #662;
1415 }
1416
--- skins/ardoise/details.txt
+++ skins/ardoise/details.txt
@@ -1,4 +1,5 @@
11
timeline-arrowheads: 0
22
timeline-circle-nodes: 1
33
timeline-color-graph-lines: 1
44
white-foreground: 1
5
+pikchr-background: 0x1d2021
56
--- skins/ardoise/details.txt
+++ skins/ardoise/details.txt
@@ -1,4 +1,5 @@
1 timeline-arrowheads: 0
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 white-foreground: 1
 
5
--- skins/ardoise/details.txt
+++ skins/ardoise/details.txt
@@ -1,4 +1,5 @@
1 timeline-arrowheads: 0
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 white-foreground: 1
5 pikchr-background: 0x1d2021
6
--- skins/ardoise/footer.txt
+++ skins/ardoise/footer.txt
@@ -6,10 +6,10 @@
66
</div> <!-- end div container -->
77
</div> <!-- end div middle max-full-width -->
88
<div class="footer">
99
<div class="container">
1010
<div class="pull-right">
11
- <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
11
+ <a href="https://fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
1212
</div>
1313
This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
1414
</div>
1515
</div>
1616
--- skins/ardoise/footer.txt
+++ skins/ardoise/footer.txt
@@ -6,10 +6,10 @@
6 </div> <!-- end div container -->
7 </div> <!-- end div middle max-full-width -->
8 <div class="footer">
9 <div class="container">
10 <div class="pull-right">
11 <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
12 </div>
13 This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
14 </div>
15 </div>
16
--- skins/ardoise/footer.txt
+++ skins/ardoise/footer.txt
@@ -6,10 +6,10 @@
6 </div> <!-- end div container -->
7 </div> <!-- end div middle max-full-width -->
8 <div class="footer">
9 <div class="container">
10 <div class="pull-right">
11 <a href="https://fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
12 </div>
13 This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
14 </div>
15 </div>
16
--- skins/ardoise/header.txt
+++ skins/ardoise/header.txt
@@ -21,51 +21,26 @@
2121
2222
<!-- Main Menu -->
2323
<div class="mainmenu">
2424
<ul>
2525
<th1>
26
-proc menulink {url name} {
27
- upvar current_page current
28
- upvar home home
29
- if {[string range $url 0 [string length $current]] eq "/$current"} {
30
- html "<li class='active'>"
31
- } else {
32
- html "<li>"
33
- }
34
- html "<a href='$home$url'>$name</a></li>\n"
35
-}
36
-menulink $index_page Home
37
-if {[anycap jor]} {
38
- menulink /timeline Timeline
39
-}
40
-if {[hascap oh]} {
41
- menulink /dir?ci=tip Files
42
-}
43
-if {[hascap o]} {
44
- menulink /brlist Branches
45
- menulink /taglist Tags
46
-}
47
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
48
- menulink /forum Forum
49
-}
50
-if {[hascap r]} {
51
- menulink /ticket Tickets
52
-}
53
-if {[hascap j]} {
54
- menulink /wiki Wiki
55
-}
56
-if {[hascap o]} {
57
- menulink /help Help
58
- }
59
-if {[hascap s]} {
60
- menulink /setup Admin
61
-} elseif {[hascap a]} {
62
- menulink /setup_ulist Users
63
-}
64
- </th1>
65
- </ul>
66
- </div> <!-- end div mainmenu -->
26
+html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a></li>\n"
27
+builtin_request_js hbmenu.js
28
+set once 1
29
+foreach {name url expr class} $mainmenu {
30
+ if {![capexpr $expr]} continue
31
+ if {$once && [string match /$current_page* $url]} {
32
+ lappend class active
33
+ set once 0
34
+ }
35
+ html "<li class='$class'>"
36
+ if {[string match /* $url]} {set url $home$url}
37
+ html "<a href='$url'>$name</a></li>\n"
38
+}
39
+</th1></ul>
40
+ </div> <!-- end div mainmenu -->
41
+ <div id="hbdrop"></div>
6742
</div> <!-- end div container -->
6843
</div> <!-- end div header -->
6944
<div class="middle max-full-width">
7045
<div class="container">
7146
<th1>
7247
--- skins/ardoise/header.txt
+++ skins/ardoise/header.txt
@@ -21,51 +21,26 @@
21
22 <!-- Main Menu -->
23 <div class="mainmenu">
24 <ul>
25 <th1>
26 proc menulink {url name} {
27 upvar current_page current
28 upvar home home
29 if {[string range $url 0 [string length $current]] eq "/$current"} {
30 html "<li class='active'>"
31 } else {
32 html "<li>"
33 }
34 html "<a href='$home$url'>$name</a></li>\n"
35 }
36 menulink $index_page Home
37 if {[anycap jor]} {
38 menulink /timeline Timeline
39 }
40 if {[hascap oh]} {
41 menulink /dir?ci=tip Files
42 }
43 if {[hascap o]} {
44 menulink /brlist Branches
45 menulink /taglist Tags
46 }
47 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
48 menulink /forum Forum
49 }
50 if {[hascap r]} {
51 menulink /ticket Tickets
52 }
53 if {[hascap j]} {
54 menulink /wiki Wiki
55 }
56 if {[hascap o]} {
57 menulink /help Help
58 }
59 if {[hascap s]} {
60 menulink /setup Admin
61 } elseif {[hascap a]} {
62 menulink /setup_ulist Users
63 }
64 </th1>
65 </ul>
66 </div> <!-- end div mainmenu -->
67 </div> <!-- end div container -->
68 </div> <!-- end div header -->
69 <div class="middle max-full-width">
70 <div class="container">
71 <th1>
72
--- skins/ardoise/header.txt
+++ skins/ardoise/header.txt
@@ -21,51 +21,26 @@
21
22 <!-- Main Menu -->
23 <div class="mainmenu">
24 <ul>
25 <th1>
26 html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a></li>\n"
27 builtin_request_js hbmenu.js
28 set once 1
29 foreach {name url expr class} $mainmenu {
30 if {![capexpr $expr]} continue
31 if {$once && [string match /$current_page* $url]} {
32 lappend class active
33 set once 0
34 }
35 html "<li class='$class'>"
36 if {[string match /* $url]} {set url $home$url}
37 html "<a href='$url'>$name</a></li>\n"
38 }
39 </th1></ul>
40 </div> <!-- end div mainmenu -->
41 <div id="hbdrop"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42 </div> <!-- end div container -->
43 </div> <!-- end div header -->
44 <div class="middle max-full-width">
45 <div class="container">
46 <th1>
47
--- skins/black_and_white/css.txt
+++ skins/black_and_white/css.txt
@@ -65,17 +65,17 @@
6565
/* The main menu bar that appears at the top left of the page beneath
6666
** the header. Width must be co-ordinated with the container below */
6767
div.mainmenu {
6868
float: left;
6969
margin-left: 10px;
70
- margin-right: 10px;
70
+ margin-right: 20px;
7171
font-size: 0.9em;
7272
font-weight: bold;
7373
padding:5px;
7474
background-color:#eee;
7575
border:1px solid #999;
76
- width:8em;
76
+ width:6em;
7777
}
7878
7979
/* Main menu is now a list */
8080
div.mainmenu ul {
8181
padding: 0;
8282
--- skins/black_and_white/css.txt
+++ skins/black_and_white/css.txt
@@ -65,17 +65,17 @@
65 /* The main menu bar that appears at the top left of the page beneath
66 ** the header. Width must be co-ordinated with the container below */
67 div.mainmenu {
68 float: left;
69 margin-left: 10px;
70 margin-right: 10px;
71 font-size: 0.9em;
72 font-weight: bold;
73 padding:5px;
74 background-color:#eee;
75 border:1px solid #999;
76 width:8em;
77 }
78
79 /* Main menu is now a list */
80 div.mainmenu ul {
81 padding: 0;
82
--- skins/black_and_white/css.txt
+++ skins/black_and_white/css.txt
@@ -65,17 +65,17 @@
65 /* The main menu bar that appears at the top left of the page beneath
66 ** the header. Width must be co-ordinated with the container below */
67 div.mainmenu {
68 float: left;
69 margin-left: 10px;
70 margin-right: 20px;
71 font-size: 0.9em;
72 font-weight: bold;
73 padding:5px;
74 background-color:#eee;
75 border:1px solid #999;
76 width:6em;
77 }
78
79 /* Main menu is now a list */
80 div.mainmenu ul {
81 padding: 0;
82
--- skins/black_and_white/header.txt
+++ skins/black_and_white/header.txt
@@ -12,36 +12,16 @@
1212
}
1313
</th1></div>
1414
</div>
1515
<div class="mainmenu">
1616
<th1>
17
-html "<a href='$home$index_page'>Home</a>\n"
18
-if {[anycap jor]} {
19
- html "<a href='$home/timeline'>Timeline</a>\n"
20
-}
21
-if {[anoncap oh]} {
22
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
23
-}
24
-if {[anoncap o]} {
25
- html "<a href='$home/brlist'>Branches</a>\n"
26
- html "<a href='$home/taglist'>Tags</a>\n"
27
-}
28
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
29
- html "<a href='$home/forum'>Forum</a>\n"
30
-}
31
-if {[anoncap r]} {
32
- html "<a href='$home/ticket'>Tickets</a>\n"
33
-}
34
-if {[anoncap j]} {
35
- html "<a href='$home/wiki'>Wiki</a>\n"
36
-}
37
-if {[hascap s]} {
38
- html "<a href='$home/setup'>Admin</a>\n"
39
-} elseif {[hascap a]} {
40
- html "<a href='$home/setup_ulist'>Users</a>\n"
41
-}
42
-if {[info exists login]} {
43
- html "<a href='$home/login'>Logout</a>\n"
44
-} else {
45
- html "<a href='$home/login'>Login</a>\n"
46
-}
47
-</th1></ul></div>
17
+set sitemap 0
18
+foreach {name url expr class} $mainmenu {
19
+ if {![capexpr $expr]} continue
20
+ if {[string match /* $url]} {set url $home$url}
21
+ html "<a href='$url'>$name</a><br/>\n"
22
+ if {[string match /sitemap $url]} {set sitemap 1}
23
+}
24
+if {!$sitemap} {
25
+ html "<a href='$home/sitemap'>Sitemap</a>\n"
26
+}
27
+</th1></div>
4828
--- skins/black_and_white/header.txt
+++ skins/black_and_white/header.txt
@@ -12,36 +12,16 @@
12 }
13 </th1></div>
14 </div>
15 <div class="mainmenu">
16 <th1>
17 html "<a href='$home$index_page'>Home</a>\n"
18 if {[anycap jor]} {
19 html "<a href='$home/timeline'>Timeline</a>\n"
20 }
21 if {[anoncap oh]} {
22 html "<a href='$home/tree?ci=tip'>Files</a>\n"
23 }
24 if {[anoncap o]} {
25 html "<a href='$home/brlist'>Branches</a>\n"
26 html "<a href='$home/taglist'>Tags</a>\n"
27 }
28 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
29 html "<a href='$home/forum'>Forum</a>\n"
30 }
31 if {[anoncap r]} {
32 html "<a href='$home/ticket'>Tickets</a>\n"
33 }
34 if {[anoncap j]} {
35 html "<a href='$home/wiki'>Wiki</a>\n"
36 }
37 if {[hascap s]} {
38 html "<a href='$home/setup'>Admin</a>\n"
39 } elseif {[hascap a]} {
40 html "<a href='$home/setup_ulist'>Users</a>\n"
41 }
42 if {[info exists login]} {
43 html "<a href='$home/login'>Logout</a>\n"
44 } else {
45 html "<a href='$home/login'>Login</a>\n"
46 }
47 </th1></ul></div>
48
--- skins/black_and_white/header.txt
+++ skins/black_and_white/header.txt
@@ -12,36 +12,16 @@
12 }
13 </th1></div>
14 </div>
15 <div class="mainmenu">
16 <th1>
17 set sitemap 0
18 foreach {name url expr class} $mainmenu {
19 if {![capexpr $expr]} continue
20 if {[string match /* $url]} {set url $home$url}
21 html "<a href='$url'>$name</a><br/>\n"
22 if {[string match /sitemap $url]} {set sitemap 1}
23 }
24 if {!$sitemap} {
25 html "<a href='$home/sitemap'>Sitemap</a>\n"
26 }
27 </th1></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
--- skins/blitz/css.txt
+++ skins/blitz/css.txt
@@ -848,19 +848,17 @@
848848
clear:both;
849849
}
850850
851851
.mainmenu ul {
852852
list-style: none outside;
853
- display: block;
854853
position: relative;
855854
border-top: 1px solid #ccc;
856855
padding: 0;
857856
}
858857
859858
.mainmenu li {
860859
outline: 0;
861
- display: block;
862860
float: left;
863861
margin: 0;
864862
}
865863
866864
.mainmenu li.active {
@@ -867,23 +865,34 @@
867865
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC);
868866
background-repeat: no-repeat;
869867
background-position: center bottom;
870868
}
871869
872
-.mainmenu li a {
870
+.mainmenu li a,
871
+div#hbdrop a {
873872
color: #3b5c6b;
874
- display: block;
875873
padding: 10px 15px;
876874
}
877875
878876
.mainmenu li.active a {
879877
font-weight: bold;
880878
}
881879
882
-.mainmenu li:hover {
880
+.mainmenu li:hover
881
+div#hbdrop a:hover {
883882
background-color: #eee;
884883
}
884
+
885
+div#hbdrop {
886
+ background-color: white;
887
+ border: 2px solid #ccc;
888
+ display: none;
889
+ width: 100%;
890
+ position: absolute;
891
+ z-index: 20;
892
+}
893
+
885894
886895
887896
/* Submenu
888897
* Displayed in the middle div. Contains page-specific form controls.
889898
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
890899
--- skins/blitz/css.txt
+++ skins/blitz/css.txt
@@ -848,19 +848,17 @@
848 clear:both;
849 }
850
851 .mainmenu ul {
852 list-style: none outside;
853 display: block;
854 position: relative;
855 border-top: 1px solid #ccc;
856 padding: 0;
857 }
858
859 .mainmenu li {
860 outline: 0;
861 display: block;
862 float: left;
863 margin: 0;
864 }
865
866 .mainmenu li.active {
@@ -867,23 +865,34 @@
867 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC);
868 background-repeat: no-repeat;
869 background-position: center bottom;
870 }
871
872 .mainmenu li a {
 
873 color: #3b5c6b;
874 display: block;
875 padding: 10px 15px;
876 }
877
878 .mainmenu li.active a {
879 font-weight: bold;
880 }
881
882 .mainmenu li:hover {
 
883 background-color: #eee;
884 }
 
 
 
 
 
 
 
 
 
 
885
886
887 /* Submenu
888 * Displayed in the middle div. Contains page-specific form controls.
889 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
890
--- skins/blitz/css.txt
+++ skins/blitz/css.txt
@@ -848,19 +848,17 @@
848 clear:both;
849 }
850
851 .mainmenu ul {
852 list-style: none outside;
 
853 position: relative;
854 border-top: 1px solid #ccc;
855 padding: 0;
856 }
857
858 .mainmenu li {
859 outline: 0;
 
860 float: left;
861 margin: 0;
862 }
863
864 .mainmenu li.active {
@@ -867,23 +865,34 @@
865 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEQAACxEBf2RfkQAAAAd0SU1FB90FDxEXAZ2XRzAAAABJSURBVCjPY2CgBzhz5sx/QmoYiTXAxMSEkWRDsLkAl0GMpHoBm0EoAlu3bmUQFxcnGAboBjEhc4gxAJtLGUmJBVwuYiTXAGSDAIx5IBObnuVxAAAAAElFTkSuQmCC);
866 background-repeat: no-repeat;
867 background-position: center bottom;
868 }
869
870 .mainmenu li a,
871 div#hbdrop a {
872 color: #3b5c6b;
 
873 padding: 10px 15px;
874 }
875
876 .mainmenu li.active a {
877 font-weight: bold;
878 }
879
880 .mainmenu li:hover
881 div#hbdrop a:hover {
882 background-color: #eee;
883 }
884
885 div#hbdrop {
886 background-color: white;
887 border: 2px solid #ccc;
888 display: none;
889 width: 100%;
890 position: absolute;
891 z-index: 20;
892 }
893
894
895
896 /* Submenu
897 * Displayed in the middle div. Contains page-specific form controls.
898 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
899
--- skins/blitz/header.txt
+++ skins/blitz/header.txt
@@ -8,67 +8,39 @@
88
html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
99
} else {
1010
html "<a class='button' href='$home/login'>Login</a>\n"
1111
}
1212
</th1>
13
- <div>
14
- <h2><small>$title</small></h2>
15
- </div>
1613
</div>
1714
<div class='logo'>
18
- <img src='$logo_image_url' />
15
+ <h1>$<project_name>
1916
<th1>
2017
if {[anycap jor]} {
2118
html "<a class='rss' href='$home/timeline.rss'></a>"
2219
}
2320
</th1>
21
+ <small> &nbsp;$<title></small></h1>
2422
</div>
2523
2624
<!-- Main Menu -->
2725
<div class="mainmenu">
28
- <ul>
29
- <th1>
30
-proc menulink {url name} {
31
- upvar current_page current
32
- upvar home home
33
- if {[string range $url 0 [string length $current]] eq "/$current"} {
34
- html "<li class='active'>"
35
- } else {
36
- html "<li>"
37
- }
38
- html "<a href='$home$url'>$name</a></li>\n"
39
-}
40
-menulink $index_page Home
41
-if {[anycap jor]} {
42
- menulink /timeline Timeline
43
-}
44
-if {[hascap oh]} {
45
- menulink /dir?ci=tip Files
46
-}
47
-if {[hascap o]} {
48
- menulink /brlist Branches
49
- menulink /taglist Tags
50
-}
51
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
52
- menulink /forum Forum
53
-}
54
-if {[hascap r]} {
55
- menulink /ticket Tickets
56
-}
57
-if {[hascap j]} {
58
- menulink /wiki Wiki
59
-}
60
-if {[hascap o]} {
61
- menulink /help Help
62
-}
63
-if {[hascap s]} {
64
- menulink /setup Admin
65
-} elseif {[hascap a]} {
66
- menulink /setup_ulist Users
67
-}
68
- </th1>
69
- </ul>
70
- </div> <!-- end div mainmenu -->
26
+ <ul><th1>
27
+html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a></li>\n"
28
+builtin_request_js hbmenu.js
29
+set once 1
30
+foreach {name url expr class} $mainmenu {
31
+ if {![capexpr $expr]} continue
32
+ if {$once && [string match /$current_page* $url]} {
33
+ lappend class active
34
+ set once 0
35
+ }
36
+ html "<li class='$class'>"
37
+ if {[string match /* $url]} {set url $home$url}
38
+ html "<a href='$url'>$name</a></li>\n"
39
+}
40
+</th1></ul>
41
+ </div> <!-- end div mainmenu -->
42
+ <div id="hbdrop"></div>
7143
</div> <!-- end div container -->
7244
</div> <!-- end div header -->
7345
<div class="middle max-full-width">
7446
<div class="container">
7547
7648
DELETED skins/blitz_no_logo/README.md
7749
DELETED skins/blitz_no_logo/css.txt
7850
DELETED skins/blitz_no_logo/details.txt
7951
DELETED skins/blitz_no_logo/footer.txt
8052
DELETED skins/blitz_no_logo/header.txt
8153
DELETED skins/blitz_no_logo/ticket.txt
--- skins/blitz/header.txt
+++ skins/blitz/header.txt
@@ -8,67 +8,39 @@
8 html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
9 } else {
10 html "<a class='button' href='$home/login'>Login</a>\n"
11 }
12 </th1>
13 <div>
14 <h2><small>$title</small></h2>
15 </div>
16 </div>
17 <div class='logo'>
18 <img src='$logo_image_url' />
19 <th1>
20 if {[anycap jor]} {
21 html "<a class='rss' href='$home/timeline.rss'></a>"
22 }
23 </th1>
 
24 </div>
25
26 <!-- Main Menu -->
27 <div class="mainmenu">
28 <ul>
29 <th1>
30 proc menulink {url name} {
31 upvar current_page current
32 upvar home home
33 if {[string range $url 0 [string length $current]] eq "/$current"} {
34 html "<li class='active'>"
35 } else {
36 html "<li>"
37 }
38 html "<a href='$home$url'>$name</a></li>\n"
39 }
40 menulink $index_page Home
41 if {[anycap jor]} {
42 menulink /timeline Timeline
43 }
44 if {[hascap oh]} {
45 menulink /dir?ci=tip Files
46 }
47 if {[hascap o]} {
48 menulink /brlist Branches
49 menulink /taglist Tags
50 }
51 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
52 menulink /forum Forum
53 }
54 if {[hascap r]} {
55 menulink /ticket Tickets
56 }
57 if {[hascap j]} {
58 menulink /wiki Wiki
59 }
60 if {[hascap o]} {
61 menulink /help Help
62 }
63 if {[hascap s]} {
64 menulink /setup Admin
65 } elseif {[hascap a]} {
66 menulink /setup_ulist Users
67 }
68 </th1>
69 </ul>
70 </div> <!-- end div mainmenu -->
71 </div> <!-- end div container -->
72 </div> <!-- end div header -->
73 <div class="middle max-full-width">
74 <div class="container">
75
76 ELETED skins/blitz_no_logo/README.md
77 ELETED skins/blitz_no_logo/css.txt
78 ELETED skins/blitz_no_logo/details.txt
79 ELETED skins/blitz_no_logo/footer.txt
80 ELETED skins/blitz_no_logo/header.txt
81 ELETED skins/blitz_no_logo/ticket.txt
--- skins/blitz/header.txt
+++ skins/blitz/header.txt
@@ -8,67 +8,39 @@
8 html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
9 } else {
10 html "<a class='button' href='$home/login'>Login</a>\n"
11 }
12 </th1>
 
 
 
13 </div>
14 <div class='logo'>
15 <h1>$<project_name>
16 <th1>
17 if {[anycap jor]} {
18 html "<a class='rss' href='$home/timeline.rss'></a>"
19 }
20 </th1>
21 <small> &nbsp;$<title></small></h1>
22 </div>
23
24 <!-- Main Menu -->
25 <div class="mainmenu">
26 <ul><th1>
27 html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a></li>\n"
28 builtin_request_js hbmenu.js
29 set once 1
30 foreach {name url expr class} $mainmenu {
31 if {![capexpr $expr]} continue
32 if {$once && [string match /$current_page* $url]} {
33 lappend class active
34 set once 0
35 }
36 html "<li class='$class'>"
37 if {[string match /* $url]} {set url $home$url}
38 html "<a href='$url'>$name</a></li>\n"
39 }
40 </th1></ul>
41 </div> <!-- end div mainmenu -->
42 <div id="hbdrop"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43 </div> <!-- end div container -->
44 </div> <!-- end div header -->
45 <div class="middle max-full-width">
46 <div class="container">
47
48 ELETED skins/blitz_no_logo/README.md
49 ELETED skins/blitz_no_logo/css.txt
50 ELETED skins/blitz_no_logo/details.txt
51 ELETED skins/blitz_no_logo/footer.txt
52 ELETED skins/blitz_no_logo/header.txt
53 ELETED skins/blitz_no_logo/ticket.txt
D skins/blitz_no_logo/README.md
-13
--- a/skins/blitz_no_logo/README.md
+++ b/skins/blitz_no_logo/README.md
@@ -1,13 +0,0 @@
1
-## Blitz Theme (no logo)
2
-
3
-Contributed by James Moger ([email protected])
4
-
5
-This theme is inspired by my own project, [Gitblit](http://gitblit.com), and offered to the Fossil project.
6
-
7
-This theme embeds & uses an unmodified copy of [Normalize 3.0.2](https://necolas.github.io/normalize.css/) which is distributed under an [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md).
8
-
9
-This theme uses half of a heavily-modified version of [Skeleton](http://getskeleton.com) which is distributed under an [MIT license](https://github.com/dhg/Skeleton/blob/master/LICENSE.md). None of the responsive elements (media queries) are included at this time.
10
-
11
-The font used in the included Fossil logo image is [Trillium Web Light](http://www.google.com/fonts/specimen/Titillium+Web) @ 48px HTML color code #456a7a.
12
-
13
-The RSS feed icon is sourced from [Font-Awesome](https://fortawesome.github.io/Font-Awesome/icons) by Dave Gandy and is distributed under the [SIL OFL 1.1 ](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) license.
--- a/skins/blitz_no_logo/README.md
+++ b/skins/blitz_no_logo/README.md
@@ -1,13 +0,0 @@
1 ## Blitz Theme (no logo)
2
3 Contributed by James Moger ([email protected])
4
5 This theme is inspired by my own project, [Gitblit](http://gitblit.com), and offered to the Fossil project.
6
7 This theme embeds & uses an unmodified copy of [Normalize 3.0.2](https://necolas.github.io/normalize.css/) which is distributed under an [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md).
8
9 This theme uses half of a heavily-modified version of [Skeleton](http://getskeleton.com) which is distributed under an [MIT license](https://github.com/dhg/Skeleton/blob/master/LICENSE.md). None of the responsive elements (media queries) are included at this time.
10
11 The font used in the included Fossil logo image is [Trillium Web Light](http://www.google.com/fonts/specimen/Titillium+Web) @ 48px HTML color code #456a7a.
12
13 The RSS feed icon is sourced from [Font-Awesome](https://fortawesome.github.io/Font-Awesome/icons) by Dave Gandy and is distributed under the [SIL OFL 1.1 ](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL) license.
--- a/skins/blitz_no_logo/README.md
+++ b/skins/blitz_no_logo/README.md
@@ -1,13 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/blitz_no_logo/css.txt
-391
--- a/skins/blitz_no_logo/css.txt
+++ b/skins/blitz_no_logo/css.txt
@@ -1,391 +0,0 @@
1
-display: block;
2
-ay: none;
3
-}
4
-
5
-.filetree aborder-top: 1px solid #ccc;
6
-OuNXUIAyATv6zz3bXPEo3display: block;
7
-FaMMN4WFqbnEl8BzXtlBX++ATr2KW3eC9kbg/9d2l6/qmdxrq9bdRkBwMtrgd+lpkpxwyWSwAkvRKSfl0phf4l+6acGVeak6QQbCJYH/Gwci+zPi/+oMFEJpLdTDfQ8IpTTl8r/lkQuniX3oR98mjX65sJQZ0wYNu1NU0wZ8RjSUf0Qo22aCU1oAoCazTFe5bdZ1pVIqcv2B12XSm6awxCFNaichCr1I1auDOQFvKxzQHFD4mexGXNfds/PoYB+iMhxzwIC8vcJe7HKVIrBEoLRQkuVL+Ii70lDlMUOR/uHrJdNaAwXo82orksR8gfVUAGFkgy5JfhKdEKncelwhq8SinwMeidX+303VHuvOgCGSRRF2o6vb6FyKmQTGRNTraQt1qJ6EaAPA4V22MYH20wXx+aCyfKFvFAcymiYfCh/YhSQZACFHpBB/l6On2l0s/AgTBWdIHHbpIulzfWDbvAW4r3gPUIwWdisplay: block;
8
-u li a {
9
- color: #3b5c6b;
10
- padding: 10px 15px;
11
-}
12
-
13
-.mainmenu li.active a {
14
- font-weight: bold;
15
-}
16
-
17
-.mainmenu li:hover {
18
- background-color: #eee;
19
-}
20
-
21
-
22
-/* Submenu
23
- * Displayed in the middle div. Contains page-specific form controls.
24
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
25
-.submenu {
26
- padding: 10px 0px;
27
- border-bottom: 1px solid #ddd;
28
-}
29
-
30
-.submenu input, .submenu select {
31
- margin: 0 0 0 5px;
32
-}
33
-
34
-.submenu a, .submenu label {
35
- display: inline;
36
- font-weight: normal;
37
- color: #3b5c6b;
38
- padding: 5px 15px;
39
- text-decoration: none;
40
- border: 1px solid transparent;
41
- border-radius: 5px;
42
-}
43
-
44
-.submenu a:hover, .submenu label:hover {
45
- border: 1px solid #ccc;
46
-}
47
-
48
-
49
-/* Section
50
- * Cap/header to distinguish a section. Displayed within a content div.
51
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
52
-.section {
53
- font-weight: bold;
54
- background-color: #f5f5f5;
55
- border: 1px solid #ccc;
56
- padding: 9px 10px 10px;
57
- margin: 10px 0;
58
-}
59
-
60
-
61
-/* Section Menu
62
- * Div of buttons/links, displayed with a section div within a content div.
63
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
64
-.sectionmenu {
65
- border: 1px solid #ccc;
66
- border-top: 0;
67
- margin-top: -10px;
68
- margin-bottom: 10px;
69
- padding: 5px;
70
- text-align: center;
71
-}
72
-.sectionmenu a {
73
- display: inline-block;
74
- margin-top: 5px;
75
- margin-right: 1em;
76
-}
77
-
78
-
79
-/* File browser
80
- * Repository tree navigation.
81
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
82
-ul.browser {
83
- list-style: none;
84
-}
85
-
86
-ul.browser li.dir {
87
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC);
88
- background-repeat: no-repeat;
89
- background-position: 0px center;
90
- padding-left: 22px;
91
- padding-top: 2px;
92
-}
93
-
94
-ul.browser li.file {
95
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC);
96
- background-repeat: no-repeat;
97
- background-position: 0px center;
98
- padding-left: 22px;
99
- padding-top: 2px;
100
-}
101
-
102
-div.filetreeline {
103
- display: table;
104
- width: 100%;
105
- white-space: nowrap;
106
-}
107
-
108
-/* tree-view top-level list */
109
-.filetree > ul {
110
- display: inline-block;
111
-}
112
-
113
-/* tree-view lists */
114
-.filetree ul {
115
- margin: 0;
116
- padding: 0;
117
- list-style: none;
118
-}
119
-/* tree-view collapsed list */
120
-.filetree ul.collapsed {
121
- display: none;
122
-}
123
-/* tree-view lists below the root */
124
-.filetree ul ul {
125
- position: relative;
126
- margin: 0 0 0 21px;
127
-}
128
-/* tree-view lists items */
129
-.filetree li {
130
- position: relative;
131
- margin: 0;
132
- padding: 0;
133
-}
134
-/* tree-view node lines */
135
-.filetree li li:before {
136
- content: '';
137
- position: absolute;
138
- top: -.8em;
139
- left: -14px;
140
- width: 16px;
141
- height: 1.5em;
142
- border-left: 1px solid #ccc;
143
- border-bottom: 1px solid #ccc;
144
-}
145
-/* tree-view directory lines */
146
-.filetree li > ul:before {
147
- content: '';
148
- position: absolute;
149
- top: -1.5em;
150
- bottom: 0;
151
- left: -35px;
152
- border-left: 1px solid #ccc;
153
-}
154
-/* hide lines for last-child directories */
155
-.filetree li.last > ul:before {
156
- display: none;
157
-}
158
-
159
-.filetree a {
160
- position: relative;
161
- z-index: 1;
162
- display: table-cell;
163
- min-height: 16px;
164
- padding-left: 22px;
165
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC);
166
- background-position: center left;
167
- background-repeat: no-repeat;
168
-}
169
-
170
-.filetree .dir > div.filetreeline > a {
171
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC);
172
-}
173
-
174
-
175
-/* Label-Value table
176
- * Displayed on the Check-in & Admin pages.
177
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
178
-table.label-value th {
179
- vertical-align: middle;
180
-}
181
-
182
-
183
-/* Branches table
184
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
185
-.brlist table td {
186
- padding: 5px;
187
-}
188
-
189
-
190
-/* Timeline
191
- * Displays chronologically-ordered check-ins with a branch graph.
192
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
193
-tr.timelineCurrent {
194
- border-left: 2px solid orange;
195
- background-color: #ffc;
196
- border-bottom: 1px solid #ddd;
197
- border-right: 1px solid #ddd;
198
-}
199
-
200
-tr.timelineSelected {
201
- border-left: 2px solid orange;
202
- background-color: #ffffe8;
203
- border-bottom: 1px solid #ddd;
204
- border-right: 1px solid #ddd;
205
-}
206
-
207
-tr.timelineCurrent td.timelineTableCell {
208
-}
209
-
210
-tr.timelineBottom td {
211
- border-bottom: 0;
212
-}
213
-
214
-div.timelineDate {
215
- font-weight: bold;
216
- white-space: nowrap;
217
-}
218
-
219
-td.timelineTime {
220
- vertical-align: top;
221
- text-align: right;
222
- white-space: nowrap;
223
- border-bottom: 0;
224
-}
225
-
226
-td.timelineGraph {
227
- width: 20px;
228
- text-align: left;
229
- vertical-align: top;
230
- border-bottom: 0;
231
-}
232
-
233
-a.timelineHistLink {
234
- text-transform: lowercase;
235
-}
236
-
237
-span.timelineComment {
238
- padding: 0px 5px;
239
-}
240
-
241
-
242
-/* Login/Loguot
243
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
244
-table.login_out {
245
-}
246
-
247
-table.login_out .login_out_label {
248
- font-weight: 700;
249
- text-align: right;
250
-}
251
-
252
-table.login_out td {
253
- border: 0;
254
-}
255
-
256
-
257
-/* Diff displays
258
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
259
-pre.udiff, table.sbsdiffcols {
260
- width: 100%;
261
- overflow: auto;
262
- border: 1px solid #ccc;
263
- padding: 0px 5px;
264
- font-size: 1rem;
265
-}
266
-
267
-pre.udiff:focus, table.sbsdiffcols:focus {
268
- outline: none;
269
-}
270
-
271
-
272
-/* Ticket Reports
273
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
274
-table.report {
275
- width: 100%;
276
- cursor: auto;
277
- border-radius: 4px;
278
- border: 1px solid #ccc;
279
- margin: 0 0 1em 0;
280
-}
281
-
282
-.report td, .report th {
283
- border: 0;
284
- font-size: .9em;
285
- padding: 5px;
286
-}
287
-
288
-.report th {
289
- cursor: pointer;
290
-}
291
-
292
-.report thead+tbody tr:hover {
293
- background-color: #f5f9fc !important;
294
-}
295
-
296
-
297
-/* Ticket page
298
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
299
-table.tktDsp {
300
- border-top: 1px solid #ccc;
301
- border-left: 1px solid #ccc;
302
- width: 100%;
303
- margin: 15px 0px 10px 0px;
304
-}
305
-
306
-td.tktDspLabel, td.tktDescLabel {
307
- width: 70px;
308
- text-align: right;
309
- overflow: hidden;
310
- font-weight: 700;
311
- padding: 10px;
312
- background-color: #f8f8f8;
313
-}
314
-
315
-td.tktDescLabel {
316
- vertical-align: top;
317
-}
318
-
319
-td.tktDspValue, td.tktDescValue {
320
- text-align: left;
321
- vertical-align: top;
322
- border: 1px solid #ccc;
323
- padding: 10px;
324
-}
325
-
326
-td.tktDspValue pre, td.tktDescValue pre,
327
-td.tktDspValue code, td.tktDescValue code {
328
- white-space: pre-wrap;
329
-}
330
-
331
-div.tktComments {
332
- width: 100%;
333
- margin: 30px 0px 10px 0px;
334
-}
335
-
336
-div.tktComment {
337
-}
338
-
339
-div.tktCommentHeader {
340
- border: 1px solid #ccc;
341
- background-color: #f8f8f8;
342
- padding: 10px 10px;
343
- margin-bottom: 10px;
344
-}
345
-
346
-span.tktCommentLogin {
347
- display: inline-block;
348
- font-weight: 700;
349
- color: #002060;
350
-}
351
-
352
-div.tktCommentBody {
353
- margin: 10px 40px 30px;
354
-}
355
-
356
-
357
-/* User setup table
358
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
359
-td.usetupEditLabel {
360
- font-weight: 700;
361
-}
362
-
363
-
364
-/* Utilities
365
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
366
-.full-width {
367
- width: 100%;
368
- box-sizing: border-box;
369
-}
370
-
371
-.max-full-width {
372
- max-width: 100%;
373
- box-sizing: border-box;
374
-}
375
-
376
-.pull-right {
377
- float: right;
378
-}
379
-
380
-.pull-left {
381
- float: left;
382
-}
383
-
384
-/* Clearing
385
-––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
386
-.container:after,
387
-.mainmenu:after,
388
-.row:after,
389
-.u-cf {
390
- content: "";
391
- displa
--- a/skins/blitz_no_logo/css.txt
+++ b/skins/blitz_no_logo/css.txt
@@ -1,391 +0,0 @@
1 display: block;
2 ay: none;
3 }
4
5 .filetree aborder-top: 1px solid #ccc;
6 OuNXUIAyATv6zz3bXPEo3display: block;
7 FaMMN4WFqbnEl8BzXtlBX++ATr2KW3eC9kbg/9d2l6/qmdxrq9bdRkBwMtrgd+lpkpxwyWSwAkvRKSfl0phf4l+6acGVeak6QQbCJYH/Gwci+zPi/+oMFEJpLdTDfQ8IpTTl8r/lkQuniX3oR98mjX65sJQZ0wYNu1NU0wZ8RjSUf0Qo22aCU1oAoCazTFe5bdZ1pVIqcv2B12XSm6awxCFNaichCr1I1auDOQFvKxzQHFD4mexGXNfds/PoYB+iMhxzwIC8vcJe7HKVIrBEoLRQkuVL+Ii70lDlMUOR/uHrJdNaAwXo82orksR8gfVUAGFkgy5JfhKdEKncelwhq8SinwMeidX+303VHuvOgCGSRRF2o6vb6FyKmQTGRNTraQt1qJ6EaAPA4V22MYH20wXx+aCyfKFvFAcymiYfCh/YhSQZACFHpBB/l6On2l0s/AgTBWdIHHbpIulzfWDbvAW4r3gPUIwWdisplay: block;
8 u li a {
9 color: #3b5c6b;
10 padding: 10px 15px;
11 }
12
13 .mainmenu li.active a {
14 font-weight: bold;
15 }
16
17 .mainmenu li:hover {
18 background-color: #eee;
19 }
20
21
22 /* Submenu
23 * Displayed in the middle div. Contains page-specific form controls.
24 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
25 .submenu {
26 padding: 10px 0px;
27 border-bottom: 1px solid #ddd;
28 }
29
30 .submenu input, .submenu select {
31 margin: 0 0 0 5px;
32 }
33
34 .submenu a, .submenu label {
35 display: inline;
36 font-weight: normal;
37 color: #3b5c6b;
38 padding: 5px 15px;
39 text-decoration: none;
40 border: 1px solid transparent;
41 border-radius: 5px;
42 }
43
44 .submenu a:hover, .submenu label:hover {
45 border: 1px solid #ccc;
46 }
47
48
49 /* Section
50 * Cap/header to distinguish a section. Displayed within a content div.
51 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
52 .section {
53 font-weight: bold;
54 background-color: #f5f5f5;
55 border: 1px solid #ccc;
56 padding: 9px 10px 10px;
57 margin: 10px 0;
58 }
59
60
61 /* Section Menu
62 * Div of buttons/links, displayed with a section div within a content div.
63 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
64 .sectionmenu {
65 border: 1px solid #ccc;
66 border-top: 0;
67 margin-top: -10px;
68 margin-bottom: 10px;
69 padding: 5px;
70 text-align: center;
71 }
72 .sectionmenu a {
73 display: inline-block;
74 margin-top: 5px;
75 margin-right: 1em;
76 }
77
78
79 /* File browser
80 * Repository tree navigation.
81 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
82 ul.browser {
83 list-style: none;
84 }
85
86 ul.browser li.dir {
87 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC);
88 background-repeat: no-repeat;
89 background-position: 0px center;
90 padding-left: 22px;
91 padding-top: 2px;
92 }
93
94 ul.browser li.file {
95 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC);
96 background-repeat: no-repeat;
97 background-position: 0px center;
98 padding-left: 22px;
99 padding-top: 2px;
100 }
101
102 div.filetreeline {
103 display: table;
104 width: 100%;
105 white-space: nowrap;
106 }
107
108 /* tree-view top-level list */
109 .filetree > ul {
110 display: inline-block;
111 }
112
113 /* tree-view lists */
114 .filetree ul {
115 margin: 0;
116 padding: 0;
117 list-style: none;
118 }
119 /* tree-view collapsed list */
120 .filetree ul.collapsed {
121 display: none;
122 }
123 /* tree-view lists below the root */
124 .filetree ul ul {
125 position: relative;
126 margin: 0 0 0 21px;
127 }
128 /* tree-view lists items */
129 .filetree li {
130 position: relative;
131 margin: 0;
132 padding: 0;
133 }
134 /* tree-view node lines */
135 .filetree li li:before {
136 content: '';
137 position: absolute;
138 top: -.8em;
139 left: -14px;
140 width: 16px;
141 height: 1.5em;
142 border-left: 1px solid #ccc;
143 border-bottom: 1px solid #ccc;
144 }
145 /* tree-view directory lines */
146 .filetree li > ul:before {
147 content: '';
148 position: absolute;
149 top: -1.5em;
150 bottom: 0;
151 left: -35px;
152 border-left: 1px solid #ccc;
153 }
154 /* hide lines for last-child directories */
155 .filetree li.last > ul:before {
156 display: none;
157 }
158
159 .filetree a {
160 position: relative;
161 z-index: 1;
162 display: table-cell;
163 min-height: 16px;
164 padding-left: 22px;
165 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExMaPfBcSgAAAFNJREFUOMvtkzEOwDAIA02VL5pHwiOTJZFQmkqFOTex+CwPCCYkAaDjB+4u65ZdYGafQVV9SR4kWQUke0mwS1o2HGcAQKs0R1lpQuQKruD4jVnBAG/cGRqf0U66AAAAAElFTkSuQmCC);
166 background-position: center left;
167 background-repeat: no-repeat;
168 }
169
170 .filetree .dir > div.filetreeline > a {
171 background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAVQBVAFV4xrLkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMLExABnLjGZQAAAEFJREFUOMtjYKAQMIaGhv4npGj16tWMuORYGBgYGOZW+eDUnNy2Ba/hLMQ4E58rCRpAyHVMlAbiqAGjBhCdmWgKAHp4Dh0ZusP3AAAAAElFTkSuQmCC);
172 }
173
174
175 /* Label-Value table
176 * Displayed on the Check-in & Admin pages.
177 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
178 table.label-value th {
179 vertical-align: middle;
180 }
181
182
183 /* Branches table
184 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
185 .brlist table td {
186 padding: 5px;
187 }
188
189
190 /* Timeline
191 * Displays chronologically-ordered check-ins with a branch graph.
192 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
193 tr.timelineCurrent {
194 border-left: 2px solid orange;
195 background-color: #ffc;
196 border-bottom: 1px solid #ddd;
197 border-right: 1px solid #ddd;
198 }
199
200 tr.timelineSelected {
201 border-left: 2px solid orange;
202 background-color: #ffffe8;
203 border-bottom: 1px solid #ddd;
204 border-right: 1px solid #ddd;
205 }
206
207 tr.timelineCurrent td.timelineTableCell {
208 }
209
210 tr.timelineBottom td {
211 border-bottom: 0;
212 }
213
214 div.timelineDate {
215 font-weight: bold;
216 white-space: nowrap;
217 }
218
219 td.timelineTime {
220 vertical-align: top;
221 text-align: right;
222 white-space: nowrap;
223 border-bottom: 0;
224 }
225
226 td.timelineGraph {
227 width: 20px;
228 text-align: left;
229 vertical-align: top;
230 border-bottom: 0;
231 }
232
233 a.timelineHistLink {
234 text-transform: lowercase;
235 }
236
237 span.timelineComment {
238 padding: 0px 5px;
239 }
240
241
242 /* Login/Loguot
243 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
244 table.login_out {
245 }
246
247 table.login_out .login_out_label {
248 font-weight: 700;
249 text-align: right;
250 }
251
252 table.login_out td {
253 border: 0;
254 }
255
256
257 /* Diff displays
258 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
259 pre.udiff, table.sbsdiffcols {
260 width: 100%;
261 overflow: auto;
262 border: 1px solid #ccc;
263 padding: 0px 5px;
264 font-size: 1rem;
265 }
266
267 pre.udiff:focus, table.sbsdiffcols:focus {
268 outline: none;
269 }
270
271
272 /* Ticket Reports
273 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
274 table.report {
275 width: 100%;
276 cursor: auto;
277 border-radius: 4px;
278 border: 1px solid #ccc;
279 margin: 0 0 1em 0;
280 }
281
282 .report td, .report th {
283 border: 0;
284 font-size: .9em;
285 padding: 5px;
286 }
287
288 .report th {
289 cursor: pointer;
290 }
291
292 .report thead+tbody tr:hover {
293 background-color: #f5f9fc !important;
294 }
295
296
297 /* Ticket page
298 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
299 table.tktDsp {
300 border-top: 1px solid #ccc;
301 border-left: 1px solid #ccc;
302 width: 100%;
303 margin: 15px 0px 10px 0px;
304 }
305
306 td.tktDspLabel, td.tktDescLabel {
307 width: 70px;
308 text-align: right;
309 overflow: hidden;
310 font-weight: 700;
311 padding: 10px;
312 background-color: #f8f8f8;
313 }
314
315 td.tktDescLabel {
316 vertical-align: top;
317 }
318
319 td.tktDspValue, td.tktDescValue {
320 text-align: left;
321 vertical-align: top;
322 border: 1px solid #ccc;
323 padding: 10px;
324 }
325
326 td.tktDspValue pre, td.tktDescValue pre,
327 td.tktDspValue code, td.tktDescValue code {
328 white-space: pre-wrap;
329 }
330
331 div.tktComments {
332 width: 100%;
333 margin: 30px 0px 10px 0px;
334 }
335
336 div.tktComment {
337 }
338
339 div.tktCommentHeader {
340 border: 1px solid #ccc;
341 background-color: #f8f8f8;
342 padding: 10px 10px;
343 margin-bottom: 10px;
344 }
345
346 span.tktCommentLogin {
347 display: inline-block;
348 font-weight: 700;
349 color: #002060;
350 }
351
352 div.tktCommentBody {
353 margin: 10px 40px 30px;
354 }
355
356
357 /* User setup table
358 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
359 td.usetupEditLabel {
360 font-weight: 700;
361 }
362
363
364 /* Utilities
365 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
366 .full-width {
367 width: 100%;
368 box-sizing: border-box;
369 }
370
371 .max-full-width {
372 max-width: 100%;
373 box-sizing: border-box;
374 }
375
376 .pull-right {
377 float: right;
378 }
379
380 .pull-left {
381 float: left;
382 }
383
384 /* Clearing
385 ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
386 .container:after,
387 .mainmenu:after,
388 .row:after,
389 .u-cf {
390 content: "";
391 displa
--- a/skins/blitz_no_logo/css.txt
+++ b/skins/blitz_no_logo/css.txt
@@ -1,391 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/blitz_no_logo/details.txt
-3
--- a/skins/blitz_no_logo/details.txt
+++ b/skins/blitz_no_logo/details.txt
@@ -1,3 +0,0 @@
1
-timeline-arrowheads: 0
2
-tim 1
3
-x@0,1OUWFw;
--- a/skins/blitz_no_logo/details.txt
+++ b/skins/blitz_no_logo/details.txt
@@ -1,3 +0,0 @@
1 timeline-arrowheads: 0
2 tim 1
3 x@0,1OUWFw;
--- a/skins/blitz_no_logo/details.txt
+++ b/skins/blitz_no_logo/details.txt
@@ -1,3 +0,0 @@
 
 
 
D skins/blitz_no_logo/footer.txt
-8
--- a/skins/blitz_no_logo/footer.txt
+++ b/skins/blitz_no_logo/footer.txt
@@ -1,9 +0,0 @@
1
-<!-- end div er -->
2
-</container -->
--- end div er -->
3
-<class="footer">
4
- < class="footer">
5
- < <div <a href="https://fossil-scm.ef="https://fossil-scm.org/">Fossil $release_version $manifest_vers </div</div>
6
- <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}] </div>
7
- </div>
8
-</div>
--- a/skins/blitz_no_logo/footer.txt
+++ b/skins/blitz_no_logo/footer.txt
@@ -1,9 +0,0 @@
1 <!-- end div er -->
2 </container -->
--- end div er -->
3 <class="footer">
4 < class="footer">
5 < <div <a href="https://fossil-scm.ef="https://fossil-scm.org/">Fossil $release_version $manifest_vers </div</div>
6 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}] </div>
7 </div>
8 </div>
--- a/skins/blitz_no_logo/footer.txt
+++ b/skins/blitz_no_logo/footer.txt
@@ -1,9 +0,0 @@
 
 
--- end div er -->
 
 
 
 
 
 
D skins/blitz_no_logo/header.txt
-71
--- a/skins/blitz_no_logo/header.txt
+++ b/skins/blitz_no_logo/header.txt
@@ -1,71 +0,0 @@
1
-<div class="header">
2
- <div class="container">
3
-
4
- <div class="login pull-right">
5
- <th1>
6
- if {[info exists login]} {
7
- html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
8
- } else {
9
- html "<a class='button' href='$home/login'>Login</a>\n"
10
- }
11
- </th1>
12
- </div>
13
- <div class='title'>
14
- <h1>$<project_name>
15
- <th1>
16
- if {[anycap jor]} {
17
- html "<a class='rss' href='$home/timeline.rss'></a>"
18
- }
19
- </th1>
20
- <small> &nbsp;$<title></small></h1>
21
- </div>
22
-
23
- <!-- Main Menu -->
24
- <div class="mainmenu">
25
- <ul>
26
- <th1>
27
-proc menulink {url name} {
28
- upvar current_page current
29
- upvar home home
30
- if {[string range $url 0 [string length $current]] eq "/$current"} {
31
- html "<li class='active'>"
32
- } else {
33
- html "<li>"$url'>$name</a></li>\n"
34
-}
35
-</th1></ul>
36
- </div> <!-- end dijoes
37
-}
38
-if {[hascap o]}div> <!-- end div container -->
39
- </div> <!-- end div header -->
40
- <div class="middle max-full-width">
41
- <div class="container">
42
-menulink $index_page Home
43
-if {[anycap ijr2]} {
44
- menulink /timeline Timeline
45
-}
46
-if {[hascap oh]} {
47
- menulink /dir?cihascap es
48
-}
49
-if {[hascap o]} {
50
- menulink /brlist Branches
51
- menulink /taglist Tags
52
-}
53
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
54
- menulink /forum Forum
55
-}
56
-if {[anycap nr]} {
57
- menulink /ticket Tickets
58
-}
59
-if {[hascap j]} {
60
- menulink /wiki Wiki
61
-}
62
-if {[hascap o]} {
63
- menulink /help Help
64
- }
65
-if {[hascap s]} {
66
- menulink /setup Admin
67
-} elseif {[hascap a]} {
68
- menulink /setup_ulist Users
69
-}
70
- </th1>
71
-
--- a/skins/blitz_no_logo/header.txt
+++ b/skins/blitz_no_logo/header.txt
@@ -1,71 +0,0 @@
1 <div class="header">
2 <div class="container">
3
4 <div class="login pull-right">
5 <th1>
6 if {[info exists login]} {
7 html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
8 } else {
9 html "<a class='button' href='$home/login'>Login</a>\n"
10 }
11 </th1>
12 </div>
13 <div class='title'>
14 <h1>$<project_name>
15 <th1>
16 if {[anycap jor]} {
17 html "<a class='rss' href='$home/timeline.rss'></a>"
18 }
19 </th1>
20 <small> &nbsp;$<title></small></h1>
21 </div>
22
23 <!-- Main Menu -->
24 <div class="mainmenu">
25 <ul>
26 <th1>
27 proc menulink {url name} {
28 upvar current_page current
29 upvar home home
30 if {[string range $url 0 [string length $current]] eq "/$current"} {
31 html "<li class='active'>"
32 } else {
33 html "<li>"$url'>$name</a></li>\n"
34 }
35 </th1></ul>
36 </div> <!-- end dijoes
37 }
38 if {[hascap o]}div> <!-- end div container -->
39 </div> <!-- end div header -->
40 <div class="middle max-full-width">
41 <div class="container">
42 menulink $index_page Home
43 if {[anycap ijr2]} {
44 menulink /timeline Timeline
45 }
46 if {[hascap oh]} {
47 menulink /dir?cihascap es
48 }
49 if {[hascap o]} {
50 menulink /brlist Branches
51 menulink /taglist Tags
52 }
53 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
54 menulink /forum Forum
55 }
56 if {[anycap nr]} {
57 menulink /ticket Tickets
58 }
59 if {[hascap j]} {
60 menulink /wiki Wiki
61 }
62 if {[hascap o]} {
63 menulink /help Help
64 }
65 if {[hascap s]} {
66 menulink /setup Admin
67 } elseif {[hascap a]} {
68 menulink /setup_ulist Users
69 }
70 </th1>
71
--- a/skins/blitz_no_logo/header.txt
+++ b/skins/blitz_no_logo/header.txt
@@ -1,71 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/blitz_no_logo/ticket.txt
-115
--- a/skins/blitz_no_logo/ticket.txt
+++ b/skins/blitz_no_logo/ticket.txt
@@ -1,115 +0,0 @@
1
-<h4>$<title></h4>
2
-<table class="tktDsp">
3
-<tr><td class="tktDspLabel">Ticket&nbsp;Hash</td>
4
-<th1>
5
-if {[info exists tkt_uuid]} {
6
- if {[hascap s]} {
7
- html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
8
- html "($tkt_id)</td></tr>\n"
9
- } else {
10
- html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
11
- }
12
-} else {
13
- if {[hascap s]} {
14
- html "<td class='tktDspValue' colspan='3'>Deleted "
15
- html "(0)</td></tr>\n"
16
- } else {
17
- html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
18
- }
19
-}
20
-</th1>
21
-<tr><td class="tktDspLabel">Status</td><td class="tktDspValue">
22
-$<status>
23
-</td>
24
-<td class="tktDspLabel">Type</td><td class="tktDspValue">
25
-$<type>
26
-</td></tr>
27
-<tr><td class="tktDspLabel">Severity</td><td class="tktDspValue">
28
-$<severity>
29
-</td>
30
-<td class="tktDspLabel">Priority</td><td class="tktDspValue">
31
-$<priority>
32
-</td></tr>
33
-<tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue">
34
-$<subsystem>
35
-</td>
36
-<td class="tktDspLabel">Resolution</td><td class="tktDspValue">
37
-$<resolution>
38
-</td></tr>
39
-<tr><td class="tktDspLabel">Last&nbsp;Modified</td><td class="tktDspValue">
40
-<th1>
41
-if {[info exists tkt_datetime]} {
42
- html $tkt_datetime
43
-}
44
-</th1>
45
-</td>
46
-<th1>enable_output [hascap e]</th1>
47
- <td class="tktDspLabel">Contact</td><td class="tktDspValue">
48
- $<private_contact>
49
- </td>
50
-<th1>enable_output 1</th1>
51
-</tr>
52
-<tr><td class="tktDspLabel">Version&nbsp;Found&nbsp;In</td>
53
-<td colspan="3" valign="top" class="tktDspValue">
54
-$<foundin>
55
-</td></tr>
56
-
57
-<th1>
58
-if {[info exists comment]} {
59
- if {[string length $comment]>10} {
60
- html {
61
- <tr>
62
- <td class="tktDescLabel">Description</td>
63
- <td class="tktDescValue" colspan="3">
64
- }
65
- if {[info exists plaintext]} {
66
- set r [randhex]
67
- wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>"
68
- } else {
69
- wiki $comment
70
- }
71
- html "</td></tr>\n"
72
- }
73
-}
74
-</th1>
75
-</table>
76
-
77
-<div class="tktComments">
78
-<th1>
79
-set seenRow 0
80
-set alwaysPlaintext [info exists plaintext]
81
-query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin,
82
- mimetype as xmimetype, icomment AS xcomment,
83
- username AS xusername
84
- FROM ticketchng
85
- WHERE tkt_id=$tkt_id AND length(icomment)>0} {
86
- if {$seenRow eq "0"} {
87
- html "<h5>User Comments</h5>\n"
88
- set seenRow 1
89
- }
90
- html "<div class='tktComment'>\n"
91
- html "<div class='tktCommentHeader'>\n"
92
- html "<div class='pull-right'>$xdate</div>\n"
93
- html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>"
94
- if {$xlogin ne $xusername && [string length $xusername]>0} {
95
- html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)"
96
- }
97
- html " commented</div>\n"
98
- html "<div class='tktCommentBody'>\n"
99
- if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
100
- set r [randhex]
101
- if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
102
- wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
103
- } elseif {$xmimetype eq "text/x-fossil-wiki"} {
104
- wiki "<p>\n[string trimright $xcomment]\n</p>\n"
105
- } elseif {$xmimetype eq "text/html"} {
106
- wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki></p>\n"
107
- } else {
108
- set r [randhex]
109
- wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n"
110
- }
111
- html "</div><!-- end comment body -->\n"
112
- html "</div><!-- end comment -->\n"
113
-}
114
-</th1>
115
-</div>
--- a/skins/blitz_no_logo/ticket.txt
+++ b/skins/blitz_no_logo/ticket.txt
@@ -1,115 +0,0 @@
1 <h4>$<title></h4>
2 <table class="tktDsp">
3 <tr><td class="tktDspLabel">Ticket&nbsp;Hash</td>
4 <th1>
5 if {[info exists tkt_uuid]} {
6 if {[hascap s]} {
7 html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
8 html "($tkt_id)</td></tr>\n"
9 } else {
10 html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
11 }
12 } else {
13 if {[hascap s]} {
14 html "<td class='tktDspValue' colspan='3'>Deleted "
15 html "(0)</td></tr>\n"
16 } else {
17 html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
18 }
19 }
20 </th1>
21 <tr><td class="tktDspLabel">Status</td><td class="tktDspValue">
22 $<status>
23 </td>
24 <td class="tktDspLabel">Type</td><td class="tktDspValue">
25 $<type>
26 </td></tr>
27 <tr><td class="tktDspLabel">Severity</td><td class="tktDspValue">
28 $<severity>
29 </td>
30 <td class="tktDspLabel">Priority</td><td class="tktDspValue">
31 $<priority>
32 </td></tr>
33 <tr><td class="tktDspLabel">Subsystem</td><td class="tktDspValue">
34 $<subsystem>
35 </td>
36 <td class="tktDspLabel">Resolution</td><td class="tktDspValue">
37 $<resolution>
38 </td></tr>
39 <tr><td class="tktDspLabel">Last&nbsp;Modified</td><td class="tktDspValue">
40 <th1>
41 if {[info exists tkt_datetime]} {
42 html $tkt_datetime
43 }
44 </th1>
45 </td>
46 <th1>enable_output [hascap e]</th1>
47 <td class="tktDspLabel">Contact</td><td class="tktDspValue">
48 $<private_contact>
49 </td>
50 <th1>enable_output 1</th1>
51 </tr>
52 <tr><td class="tktDspLabel">Version&nbsp;Found&nbsp;In</td>
53 <td colspan="3" valign="top" class="tktDspValue">
54 $<foundin>
55 </td></tr>
56
57 <th1>
58 if {[info exists comment]} {
59 if {[string length $comment]>10} {
60 html {
61 <tr>
62 <td class="tktDescLabel">Description</td>
63 <td class="tktDescValue" colspan="3">
64 }
65 if {[info exists plaintext]} {
66 set r [randhex]
67 wiki "<verbatim-$r links>\n$comment\n</verbatim-$r>"
68 } else {
69 wiki $comment
70 }
71 html "</td></tr>\n"
72 }
73 }
74 </th1>
75 </table>
76
77 <div class="tktComments">
78 <th1>
79 set seenRow 0
80 set alwaysPlaintext [info exists plaintext]
81 query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin,
82 mimetype as xmimetype, icomment AS xcomment,
83 username AS xusername
84 FROM ticketchng
85 WHERE tkt_id=$tkt_id AND length(icomment)>0} {
86 if {$seenRow eq "0"} {
87 html "<h5>User Comments</h5>\n"
88 set seenRow 1
89 }
90 html "<div class='tktComment'>\n"
91 html "<div class='tktCommentHeader'>\n"
92 html "<div class='pull-right'>$xdate</div>\n"
93 html "<span class='tktCommentLogin'>[htmlize $xlogin]</span>"
94 if {$xlogin ne $xusername && [string length $xusername]>0} {
95 html " (claiming to be <span class='tktCommentLogin'>[htmlize $xusername]</span>)"
96 }
97 html " commented</div>\n"
98 html "<div class='tktCommentBody'>\n"
99 if {$alwaysPlaintext || $xmimetype eq "text/plain"} {
100 set r [randhex]
101 if {$xmimetype ne "text/plain"} {html "([htmlize $xmimetype])\n"}
102 wiki "<verbatim-$r>[string trimright $xcomment]</verbatim-$r>\n"
103 } elseif {$xmimetype eq "text/x-fossil-wiki"} {
104 wiki "<p>\n[string trimright $xcomment]\n</p>\n"
105 } elseif {$xmimetype eq "text/html"} {
106 wiki "<p><nowiki>\n[string trimright $xcomment]\n</nowiki></p>\n"
107 } else {
108 set r [randhex]
109 wiki "<verbatim-$r links>[string trimright $xcomment]</verbatim-$r>\n"
110 }
111 html "</div><!-- end comment body -->\n"
112 html "</div><!-- end comment -->\n"
113 }
114 </th1>
115 </div>
--- a/skins/blitz_no_logo/ticket.txt
+++ b/skins/blitz_no_logo/ticket.txt
@@ -1,115 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- skins/bootstrap/header.txt
+++ skins/bootstrap/header.txt
@@ -39,79 +39,29 @@
3939
html " &middot; <a href='$home/login'>Login</a>"
4040
}
4141
</th1></p>
4242
<ul class="nav navbar-nav">
4343
<th1>
44
- set is_index [expr [string compare [string range $current_page 0 4] "index"]==0]
45
- set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0]
46
- if {$is_index || $is_home} {
47
- html "<li class='active'><a href='$home$index_page'>Home</a></li>\n"
48
- } else {
49
- html "<li><a href='$home$index_page'>Home</a></li>\n"
50
- }
51
- if {[hascap j]} {
52
- if {[string compare [string range $current_page 0 3] "wiki"] == 0} {
53
- html "<li class='active'><a href='$home/wiki'>Wiki</a></li>\n"
54
- } else {
55
- html "<li><a href='$home/wiki'>Wiki</a></li>\n"
56
- }
57
- }
58
- if {[anycap jor]} {
59
- if {[string compare $current_page "timeline"] == 0} {
60
- html "<li class='active'><a href='$home/timeline'>Timeline</a></li>\n"
61
- } else {
62
- html "<li><a href='$home/timeline'>Timeline</a></li>\n"
63
- }
64
- }
65
- if {[hascap oh]} {
66
- if {[string compare [string range $current_page 0 2] "dir"] == 0} {
67
- html "<li class='active'><a href='$home/dir?ci=tip'>Files</a></li>\n"
68
- } else {
69
- html "<li><a href='$home/dir?ci=tip'>Files</a></li>\n"
70
- }
71
- }
72
- if {[hascap o]} {
73
- if {[string compare $current_page "brlist"] == 0} {
74
- html "<li class='active'><a href='$home/brlist'>Branches</a></li>\n"
75
- } else {
76
- html "<li><a href='$home/brlist'>Branches</a></li>\n"
77
- }
78
- if {[string compare $current_page "taglist"] == 0} {
79
- html "<li class='active'><a href='$home/taglist'>Tags</a></li>\n"
80
- } else {
81
- html "<li><a href='$home/taglist'>Tags</a></li>\n"
82
- }
83
- }
84
- if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
85
- if {[string compare $current_page "forum"] == 0} {
86
- html "<li class='active'><a href='$home/forum'>Forum</a></li>\n"
87
- } else {
88
- html "<li><a href='$home/forum'>Forum</a></li>\n"
89
- }
90
- }
91
- if {[hascap r]} {
92
- if {[string compare $current_page "reportlist"] == 0} {
93
- html "<li class='active'><a href='$home/reportlist'>Tickets</a></li>\n"
94
- } else {
95
- html "<li><a href='$home/reportlist'>Tickets</a></li>\n"
96
- }
97
- }
98
- if {[hascap s]} {
99
- if {[string compare [string range $current_page 0 4] "setup"] == 0} {
100
- html "<li class='active'><a href='$home/setup'>Admin</a></li>\n"
101
- } else {
102
- html "<li><a href='$home/setup'>Admin</a></li>\n"
103
- }
104
- } elseif {[hascap a]} {
105
- if {[string compare [string range $current_page 0 4] "setup"] == 0} {
106
- html "<li class='active'><a href='$home/setup_ulist'>Users</a></li>\n"
107
- } else {
108
- html "<li><a href='$home/setup_ulist'>Users</a></li>\n"
109
- }
110
- }
111
- </th1>
112
- </ul>
44
+set once 1
45
+set sitemap 0
46
+set is_index [expr [string compare [string range $current_page 0 4] "index"]==0]
47
+set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0]
48
+foreach {name url expr class} $mainmenu {
49
+ if {![capexpr $expr]} continue
50
+ if {$once && [string match /$current_page* $url]} {
51
+ lappend class active
52
+ set once 0
53
+ }
54
+ html "<li class='$class'>"
55
+ if {[string match /* $url]} {set url $home$url}
56
+ if {[string match *sitemap* $url]} {set sitemap 1}
57
+ html "<a href='$url'>$name</a></li>\n"
58
+}
59
+if {!$sitemap} {
60
+ html "<li><a href='$home/sitemap'>...</a>\n"
61
+}
62
+</th1></ul>
11363
</div><!--/.nav-collapse -->
11464
</div>
11565
</div>
11666
<div class="content">
11767
<th1>
11868
11969
ADDED skins/darkmode/css.txt
12070
ADDED skins/darkmode/details.txt
12171
ADDED skins/darkmode/footer.txt
12272
ADDED skins/darkmode/header.txt
--- skins/bootstrap/header.txt
+++ skins/bootstrap/header.txt
@@ -39,79 +39,29 @@
39 html " &middot; <a href='$home/login'>Login</a>"
40 }
41 </th1></p>
42 <ul class="nav navbar-nav">
43 <th1>
44 set is_index [expr [string compare [string range $current_page 0 4] "index"]==0]
45 set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0]
46 if {$is_index || $is_home} {
47 html "<li class='active'><a href='$home$index_page'>Home</a></li>\n"
48 } else {
49 html "<li><a href='$home$index_page'>Home</a></li>\n"
50 }
51 if {[hascap j]} {
52 if {[string compare [string range $current_page 0 3] "wiki"] == 0} {
53 html "<li class='active'><a href='$home/wiki'>Wiki</a></li>\n"
54 } else {
55 html "<li><a href='$home/wiki'>Wiki</a></li>\n"
56 }
57 }
58 if {[anycap jor]} {
59 if {[string compare $current_page "timeline"] == 0} {
60 html "<li class='active'><a href='$home/timeline'>Timeline</a></li>\n"
61 } else {
62 html "<li><a href='$home/timeline'>Timeline</a></li>\n"
63 }
64 }
65 if {[hascap oh]} {
66 if {[string compare [string range $current_page 0 2] "dir"] == 0} {
67 html "<li class='active'><a href='$home/dir?ci=tip'>Files</a></li>\n"
68 } else {
69 html "<li><a href='$home/dir?ci=tip'>Files</a></li>\n"
70 }
71 }
72 if {[hascap o]} {
73 if {[string compare $current_page "brlist"] == 0} {
74 html "<li class='active'><a href='$home/brlist'>Branches</a></li>\n"
75 } else {
76 html "<li><a href='$home/brlist'>Branches</a></li>\n"
77 }
78 if {[string compare $current_page "taglist"] == 0} {
79 html "<li class='active'><a href='$home/taglist'>Tags</a></li>\n"
80 } else {
81 html "<li><a href='$home/taglist'>Tags</a></li>\n"
82 }
83 }
84 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
85 if {[string compare $current_page "forum"] == 0} {
86 html "<li class='active'><a href='$home/forum'>Forum</a></li>\n"
87 } else {
88 html "<li><a href='$home/forum'>Forum</a></li>\n"
89 }
90 }
91 if {[hascap r]} {
92 if {[string compare $current_page "reportlist"] == 0} {
93 html "<li class='active'><a href='$home/reportlist'>Tickets</a></li>\n"
94 } else {
95 html "<li><a href='$home/reportlist'>Tickets</a></li>\n"
96 }
97 }
98 if {[hascap s]} {
99 if {[string compare [string range $current_page 0 4] "setup"] == 0} {
100 html "<li class='active'><a href='$home/setup'>Admin</a></li>\n"
101 } else {
102 html "<li><a href='$home/setup'>Admin</a></li>\n"
103 }
104 } elseif {[hascap a]} {
105 if {[string compare [string range $current_page 0 4] "setup"] == 0} {
106 html "<li class='active'><a href='$home/setup_ulist'>Users</a></li>\n"
107 } else {
108 html "<li><a href='$home/setup_ulist'>Users</a></li>\n"
109 }
110 }
111 </th1>
112 </ul>
113 </div><!--/.nav-collapse -->
114 </div>
115 </div>
116 <div class="content">
117 <th1>
118
119 DDED skins/darkmode/css.txt
120 DDED skins/darkmode/details.txt
121 DDED skins/darkmode/footer.txt
122 DDED skins/darkmode/header.txt
--- skins/bootstrap/header.txt
+++ skins/bootstrap/header.txt
@@ -39,79 +39,29 @@
39 html " &middot; <a href='$home/login'>Login</a>"
40 }
41 </th1></p>
42 <ul class="nav navbar-nav">
43 <th1>
44 set once 1
45 set sitemap 0
46 set is_index [expr [string compare [string range $current_page 0 4] "index"]==0]
47 set is_home [expr [string compare [string range $current_page 0 [expr [string length $index_page]-1] ] $index_page]==0]
48 foreach {name url expr class} $mainmenu {
49 if {![capexpr $expr]} continue
50 if {$once && [string match /$current_page* $url]} {
51 lappend class active
52 set once 0
53 }
54 html "<li class='$class'>"
55 if {[string match /* $url]} {set url $home$url}
56 if {[string match *sitemap* $url]} {set sitemap 1}
57 html "<a href='$url'>$name</a></li>\n"
58 }
59 if {!$sitemap} {
60 html "<li><a href='$home/sitemap'>...</a>\n"
61 }
62 </th1></ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63 </div><!--/.nav-collapse -->
64 </div>
65 </div>
66 <div class="content">
67 <th1>
68
69 DDED skins/darkmode/css.txt
70 DDED skins/darkmode/details.txt
71 DDED skins/darkmode/footer.txt
72 DDED skins/darkmode/header.txt
--- a/skins/darkmode/css.txt
+++ b/skins/darkmode/css.txt
@@ -0,0 +1,49 @@
1
+/* General settings for the entire page */
2
+body {
3
+ margin: 0ex 1ex;
4
+ padding: 0;
5
+ background-color: #1f1f1f;
6
+ color: #ffffffe0;
7
+ font-family: sans-serif;
8
+}
9
+
10
+/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
11
+body {
12
+ margin: 0ex 1ex;
13
+ padding: 0;
14
+ background-color: #1f1f1f;
15
+ color: #ffffffe0;
16
+ font-family: sans-serif;
17
+}
18
+
19
+/* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label,
20
+footernamainfooter General settings for the entire page */
21
+body {
22
+ margin: 0ex 1ex;
23
+ padding: 0;
24
+ background-color: #1f1f1f;
25
+ color: #ffffffe0;
26
+ font-family: sans-serif;
27
+}
28
+
29
+/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
30
+body {
31
+ margin: 0ex 1ex;
32
+ padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label,
33
+divdidivdivre page */
34
+body {
35
+ margin: 0ex 1ex;
36
+ padding: 0;
37
+ background-color: #1f1f1f;
38
+ color: #ffffffe0;
39
+ font-family: sans-serif;
40
+}
41
+
42
+/* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
43
+body {
44
+ margin: 0ex 1ex;
45
+ padding: 0;
46
+ background-color: #1f1f1f;
47
+ color: #ffffffe0;
48
+ font-family: scolor: #333#888;
49
+ outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR;
--- a/skins/darkmode/css.txt
+++ b/skins/darkmode/css.txt
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/darkmode/css.txt
+++ b/skins/darkmode/css.txt
@@ -0,0 +1,49 @@
1 /* General settings for the entire page */
2 body {
3 margin: 0ex 1ex;
4 padding: 0;
5 background-color: #1f1f1f;
6 color: #ffffffe0;
7 font-family: sans-serif;
8 }
9
10 /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
11 body {
12 margin: 0ex 1ex;
13 padding: 0;
14 background-color: #1f1f1f;
15 color: #ffffffe0;
16 font-family: sans-serif;
17 }
18
19 /* The page title centered at the todididiv.didiv.42px;bbb%34pxbbbheadernanav#hbdropnav.mainmenu, nananav.mainmenu a, nanav.submenu label,
20 footernamainfooter General settings for the entire page */
21 body {
22 margin: 0ex 1ex;
23 padding: 0;
24 background-color: #1f1f1f;
25 color: #ffffffe0;
26 font-family: sans-serif;
27 }
28
29 /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
30 body {
31 margin: 0ex 1ex;
32 padr divdiv.maididiv.mainmenu, dididiv.mainmenu a, didiv.submenu label,
33 divdidivdivre page */
34 body {
35 margin: 0ex 1ex;
36 padding: 0;
37 background-color: #1f1f1f;
38 color: #ffffffe0;
39 font-family: sans-serif;
40 }
41
42 /* The page title centered at the todiv.didiv#hbdrop/* General settings for or the entire page */
43 body {
44 margin: 0ex 1ex;
45 padding: 0;
46 background-color: #1f1f1f;
47 color: #ffffffe0;
48 font-family: scolor: #333#888;
49 outline: 04pxbbbheadernanav#hbdropnav.mainmenu,div.mainmenu 0.8;23H@kk,2fIgeR;
--- a/skins/darkmode/details.txt
+++ b/skins/darkmode/details.txt
@@ -0,0 +1,4 @@
1
+timeline-arrowheads: 0
2
+timeline-circle-nodes: 1
3
+timeline-color-graph-lines: 1
4
+whi
--- a/skins/darkmode/details.txt
+++ b/skins/darkmode/details.txt
@@ -0,0 +1,4 @@
 
 
 
 
--- a/skins/darkmode/details.txt
+++ b/skins/darkmode/details.txt
@@ -0,0 +1,4 @@
1 timeline-arrowheads: 0
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 whi
--- a/skins/darkmode/footer.txt
+++ b/skins/darkmode/footer.txt
@@ -0,0 +1,6 @@
1
+<div class="footer">
2
+ <div class="container">
3
+ <div class="pull-right">
4
+ <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
5
+ </div>
6
+ This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000div>
--- a/skins/darkmode/footer.txt
+++ b/skins/darkmode/footer.txt
@@ -0,0 +1,6 @@
 
 
 
 
 
 
--- a/skins/darkmode/footer.txt
+++ b/skins/darkmode/footer.txt
@@ -0,0 +1,6 @@
1 <div class="footer">
2 <div class="container">
3 <div class="pull-right">
4 <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
5 </div>
6 This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000div>
--- a/skins/darkmode/header.txt
+++ b/skins/darkmode/header.txt
@@ -0,0 +1,22 @@
1
+<div class="header">
2
+ <div class="status leftoftitle"><th1>
3
+ if {[info exists login]} {
4
+ set logintext "<a href='$home/login'>$login</a>\n"
5
+ } else {
6
+ set logintext "<a href='$home/login'>Login</a>\n"
7
+ }
8
+ html $logintext
9
+ </th1></div>
10
+ <div class="title">$<title></div>
11
+ <div clas="status"><nobr><th1>
12
+ html $logintediv>
13
+<di</nobr></div>
14
+</he>
15
+<th1>
16
+html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
17
+Site Map'>&#9776;</a>"
18
+ buforeach {name urlif {![capexpr $expr]} continue
19
+ xpr $expr]} continue
20
+ if {[stif {[string match $url\[/?#\]*set class "acti/$current_page/* $urlhref='$url' c}
21
+</th1* $url<nav id='hbdrdiv>
22
+<div id='hbdrop'></div>
--- a/skins/darkmode/header.txt
+++ b/skins/darkmode/header.txt
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/skins/darkmode/header.txt
+++ b/skins/darkmode/header.txt
@@ -0,0 +1,22 @@
1 <div class="header">
2 <div class="status leftoftitle"><th1>
3 if {[info exists login]} {
4 set logintext "<a href='$home/login'>$login</a>\n"
5 } else {
6 set logintext "<a href='$home/login'>Login</a>\n"
7 }
8 html $logintext
9 </th1></div>
10 <div class="title">$<title></div>
11 <div clas="status"><nobr><th1>
12 html $logintediv>
13 <di</nobr></div>
14 </he>
15 <th1>
16 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
17 Site Map'>&#9776;</a>"
18 buforeach {name urlif {![capexpr $expr]} continue
19 xpr $expr]} continue
20 if {[stif {[string match $url\[/?#\]*set class "acti/$current_page/* $urlhref='$url' c}
21 </th1* $url<nav id='hbdrdiv>
22 <div id='hbdrop'></div>
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -61,11 +61,11 @@
6161
.mainmenu a.active,
6262
.mainmenu a:hover {
6363
color: #000;
6464
border-bottom: 2px solid #D26911;
6565
}
66
-.mainmenu div#hbdrop {
66
+div#hbdrop {
6767
background-color: white;
6868
border: 1px solid black;
6969
border-top: white;
7070
border-radius: 0 0 0.5em 0.5em;
7171
display: none;
@@ -272,13 +272,10 @@
272272
padding: 10px 10px;
273273
}
274274
.mainmenu {
275275
padding: 10px;
276276
}
277
- .desktoponly {
278
- display: none;
279
- }
280277
}
281278
@media screen and (min-width: 600px) {
282279
/* Spacing for desktop */
283280
body {
284281
padding-left: 20px;
@@ -294,11 +291,5 @@
294291
}
295292
.mainmenu {
296293
padding: 10px;
297294
}
298295
}
299
-@media screen and (max-width: 1200px) {
300
- /* Special declarations for narrow desktop or wide mobile */
301
- .wideonly {
302
- display: none;
303
- }
304
-}
305296
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -61,11 +61,11 @@
61 .mainmenu a.active,
62 .mainmenu a:hover {
63 color: #000;
64 border-bottom: 2px solid #D26911;
65 }
66 .mainmenu div#hbdrop {
67 background-color: white;
68 border: 1px solid black;
69 border-top: white;
70 border-radius: 0 0 0.5em 0.5em;
71 display: none;
@@ -272,13 +272,10 @@
272 padding: 10px 10px;
273 }
274 .mainmenu {
275 padding: 10px;
276 }
277 .desktoponly {
278 display: none;
279 }
280 }
281 @media screen and (min-width: 600px) {
282 /* Spacing for desktop */
283 body {
284 padding-left: 20px;
@@ -294,11 +291,5 @@
294 }
295 .mainmenu {
296 padding: 10px;
297 }
298 }
299 @media screen and (max-width: 1200px) {
300 /* Special declarations for narrow desktop or wide mobile */
301 .wideonly {
302 display: none;
303 }
304 }
305
--- skins/default/css.txt
+++ skins/default/css.txt
@@ -61,11 +61,11 @@
61 .mainmenu a.active,
62 .mainmenu a:hover {
63 color: #000;
64 border-bottom: 2px solid #D26911;
65 }
66 div#hbdrop {
67 background-color: white;
68 border: 1px solid black;
69 border-top: white;
70 border-radius: 0 0 0.5em 0.5em;
71 display: none;
@@ -272,13 +272,10 @@
272 padding: 10px 10px;
273 }
274 .mainmenu {
275 padding: 10px;
276 }
 
 
 
277 }
278 @media screen and (min-width: 600px) {
279 /* Spacing for desktop */
280 body {
281 padding-left: 20px;
@@ -294,11 +291,5 @@
291 }
292 .mainmenu {
293 padding: 10px;
294 }
295 }
 
 
 
 
 
 
296
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -1,8 +1,5 @@
11
<div class="footer">
22
This page was generated in about
33
<th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
44
Fossil $release_version $manifest_version $manifest_date
55
</div>
6
-<script nonce="$nonce">
7
-<th1>styleScript</th1>
8
-</script>
96
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -1,8 +1,5 @@
1 <div class="footer">
2 This page was generated in about
3 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
4 Fossil $release_version $manifest_version $manifest_date
5 </div>
6 <script nonce="$nonce">
7 <th1>styleScript</th1>
8 </script>
9
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -1,8 +1,5 @@
1 <div class="footer">
2 This page was generated in about
3 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
4 Fossil $release_version $manifest_version $manifest_date
5 </div>
 
 
 
6
--- skins/default/header.txt
+++ skins/default/header.txt
@@ -8,46 +8,19 @@
88
}
99
</th1></div>
1010
</div>
1111
<div class="mainmenu">
1212
<th1>
13
-proc menulink {url name cls} {
14
- upvar current_page current
15
- upvar home home
16
- if {[string range $url 0 [string length $current]] eq "/$current"} {
17
- html "<a href='$home$url' class='active $cls'>$name</a>\n"
18
- } else {
19
- html "<a href='$home$url' class='$cls'>$name</a>\n"
20
- }
21
-}
22
-html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
23
-menulink $index_page Home {}
24
-if {[anycap jor]} {
25
- menulink /timeline Timeline {}
26
-}
27
-if {[hascap oh]} {
28
- if {![info exists current_checkin]} {set current_checkin tip}
29
- menulink /dir?ci=$current_checkin Files desktoponly
30
-}
31
-if {[hascap o]} {
32
- menulink /brlist Branches wideonly
33
- menulink /taglist Tags wideonly
34
-}
35
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
36
- menulink /forum Forum desktoponly
37
-}
38
-if {[hascap C]} {
39
- menulink /chat Chat wideonly
40
-}
41
-if {[hascap r]} {
42
- menulink /ticket Tickets wideonly
43
-}
44
-if {[hascap j]} {
45
- menulink /wiki Wiki wideonly
46
-}
47
-if {[hascap s]} {
48
- menulink /setup Admin {}
49
-} elseif {[hascap a]} {
50
- menulink /setup_ulist Users {}
13
+html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
14
+builtin_request_js hbmenu.js
15
+foreach {name url expr class} $mainmenu {
16
+ if {![capexpr $expr]} continue
17
+ if {[string match /* $url]} {
18
+ if {[string match /$current_page* $url]} {
19
+ set class "active $class"
20
+ }
21
+ set url $home$url
22
+ }
23
+ html "<a href='$url' class='$class'>$name</a>\n"
5124
}
5225
</th1></div>
5326
<div id='hbdrop'></div>
5427
5528
DELETED skins/default/js.txt
--- skins/default/header.txt
+++ skins/default/header.txt
@@ -8,46 +8,19 @@
8 }
9 </th1></div>
10 </div>
11 <div class="mainmenu">
12 <th1>
13 proc menulink {url name cls} {
14 upvar current_page current
15 upvar home home
16 if {[string range $url 0 [string length $current]] eq "/$current"} {
17 html "<a href='$home$url' class='active $cls'>$name</a>\n"
18 } else {
19 html "<a href='$home$url' class='$cls'>$name</a>\n"
20 }
21 }
22 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
23 menulink $index_page Home {}
24 if {[anycap jor]} {
25 menulink /timeline Timeline {}
26 }
27 if {[hascap oh]} {
28 if {![info exists current_checkin]} {set current_checkin tip}
29 menulink /dir?ci=$current_checkin Files desktoponly
30 }
31 if {[hascap o]} {
32 menulink /brlist Branches wideonly
33 menulink /taglist Tags wideonly
34 }
35 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
36 menulink /forum Forum desktoponly
37 }
38 if {[hascap C]} {
39 menulink /chat Chat wideonly
40 }
41 if {[hascap r]} {
42 menulink /ticket Tickets wideonly
43 }
44 if {[hascap j]} {
45 menulink /wiki Wiki wideonly
46 }
47 if {[hascap s]} {
48 menulink /setup Admin {}
49 } elseif {[hascap a]} {
50 menulink /setup_ulist Users {}
51 }
52 </th1></div>
53 <div id='hbdrop'></div>
54
55 ELETED skins/default/js.txt
--- skins/default/header.txt
+++ skins/default/header.txt
@@ -8,46 +8,19 @@
8 }
9 </th1></div>
10 </div>
11 <div class="mainmenu">
12 <th1>
13 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
14 builtin_request_js hbmenu.js
15 foreach {name url expr class} $mainmenu {
16 if {![capexpr $expr]} continue
17 if {[string match /* $url]} {
18 if {[string match /$current_page* $url]} {
19 set class "active $class"
20 }
21 set url $home$url
22 }
23 html "<a href='$url' class='$class'>$name</a>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24 }
25 </th1></div>
26 <div id='hbdrop'></div>
27
28 ELETED skins/default/js.txt
D skins/default/js.txt
-228
--- a/skins/default/js.txt
+++ b/skins/default/js.txt
@@ -1,228 +0,0 @@
1
-/*
2
-** Copyright © 2018 Warren Young
3
-**
4
-** This program is free software; you can redistribute it and/or
5
-** modify it under the terms of the Simplified BSD License (also
6
-** known as the "2-Clause License" or "FreeBSD License".)
7
-**
8
-** This program is distributed in the hope that it will be useful,
9
-** but without any warranty; without even the implied warranty of
10
-** merchantability or fitness for a particular purpose.
11
-**
12
-** Contact: wyoung on the Fossil forum, https
13
-*******************************************************************************
14
-**
15
-** Thisspecific to the Fossil default skin.
16
-** Currently, the only thing this does is handle clicks on isition the hddrop container.
17
-*/
18
-(function() {
19
- var hbButton = document.getElementById("hbbtn");
20
- if (!hbButton) return; // no hamburger button
21
- if (!document.addEventListener) return; // Incompatible browser
22
- var panel = document.getElementById("hbdrop");
23
- if (!panel) return; // site admin might've nuked it
24
- if (!panel.style) return; // shouldn't happen, but be sure
25
- var panelBorder = panel.style.border;
26
- var panelInitialized = false; // reset if browser window is resized
27
- var panelResetBorderTimerID = 0; // used to cancel post-animation tasks
28
-
29
- // Disable animation if this browser doesn't support CSS transitions.
30
- //
31
- // We need this ugly calling form for old browsers that don't allow
32
- // panel.style.hasOwnProperty('transition'); catering to old browsers
33
- // is the whole point here.
34
- var animate = panel.style.transition !== null && (typeof(panel.style.transition) == "string");
35
-
36
- // The duration of the animation can be overridden from the default skin
37
- // header.txt by setting the "data-anim-ms" attribute of the panel.
38
- var animMS = panel.getAttribute("data-anim-ms");
39
- if (animMS) { // not null or empty string, parse it
40
- animMS = parseInt(animMS);
41
- if (isNaN(animMS) || animMS == 0)
42
- animate = false; // disable animation if non-numeric or zero
43
- else if (animMS < 0)
44
- animMS = 400; // set default animation duration if negative
45
- }
46
- else // attribute is null or empty string, use default
47
- animMS = 400;
48
-
49
- // Calculate panel height despite its being hidden at call time.
50
- // Based on https://stackoverflow.com/a/29047447/142454
51
- var panelHeight; // computed on first panel display
52
- function calculatePanelHeight() {
53
-
54
- // Clear the max-height CSS property in case the panel size is recalculated
55
- // after the browser window was resized.
56
- panel.style.maxHeight = '';
57
-
58
- // Get initial panel styles so we can restore them below.
59
- var es = window.getComputedStyle(panel),
60
- edis = es.display,
61
- epos = es.position,
62
- evis = es.visibility;
63
-
64
- // Restyle the panel so we can measure its height while invisible.
65
- panel.style.visibility = 'hidden';
66
- panel.style.position = 'absolute';
67
- panel.style.display = 'block';
68
- panelHeight = panel.offsetHeight + 'px';
69
-
70
- // Revert styles now that job is done.
71
- panel.style.display = edis;
72
- panel.style.position = epos;
73
- panel.style.visibility = evis;
74
- }
75
-
76
- // Show the panel by changing the panel height, which kicks off the
77
- // slide-open/closed transition set up in the XHR onload handler.
78
- //
79
- // Schedule the change for a near-future time in case this is the
80
- // first call, where the div was initially invisible. If we were
81
- // to change the panel's visibility and height at the same time
82
- // instead, that would prevent the browser from seeing the height
83
- // change as a state transition, so it'd skip the CSS transition:
84
- //
85
- // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples
86
- function showPanel() {
87
- // Cancel the timer to remove the panel border after the closing animation,
88
- // otherwise double-clicking the hamburger button with the panel opened will
89
- // remove the borders from the (closed and immediately reopened) panel.
90
- if (panelResetBorderTimerID) {
91
- clearTimeout(panelResetBorderTimerID);
92
- panelResetBorderTimerID = 0;
93
- }
94
- if (animate) {
95
- if (!panelInitialized) {
96
- panelInitialized = true;
97
- // Set up a CSS transition to animate the panel open and
98
- // closed. Only needs to be done once per page load.
99
- // Based on https://stackoverflow.com/a/29047447/142454
100
- calculatePanelHeight();
101
- panel.style.transition = 'max-height ' + animMS +
102
- 'ms ease-in-out';
103
- panel.style.overflowY = 'hidden';
104
- panel.style.maxHeight = '0';
105
- }
106
- setTimeout(function() {
107
- panel.style.maxHeight = panelHeight;
108
- panel.style.border = panelBorder;
109
- }, 40); // 25ms is insufficient with Firefox 62
110
- }
111
- panel.style.display = 'block';
112
- document.addEventListener('keydown',panelKeydown,/* useCapture == */true);
113
- document.addEventListener('click',panelClick,false);
114
- }
115
-
116
- var panelKeydown = function(event) {
117
- var key = event.which || event.keyCode;
118
- if (key == 27) {
119
- event.stopPropagation(); // ignore other keydown handlers
120
- panelToggle(true);
121
- }
122
- };
123
-
124
- var panelClick = function(event) {
125
- if (!panel.contains(event.target)) {
126
- // Call event.preventDefault() to have clicks outside the opened panel
127
- // just close the panel, and swallow clicks on links or form elements.
128
- //event.preventDefault();
129
- panelToggle(true);
130
- }
131
- };
132
-
133
- // Return true if the panel is showing.
134
- function panelShowing() {
135
- if (animate) {
136
- return panel.style.maxHeight == panelHeight;
137
- }
138
- else {
139
- return panel.style.display == 'block';
140
- }
141
- }
142
-
143
- // Check if the specified HTML element has any child elements. Note that plain
144
- // text nodes, comments, and any spaces (presentational or not) are ignored.
145
- function hasChildren(element) {
146
- var childElement = element.firstChild;
147
- while (childElement) {
148
- if (childElement.nodeType == 1) // Node.ELEMENT_NODE == 1
149
- return true;
150
- childElement = childElement.nextSibling;
151
- }
152
- return false;
153
- }
154
-
155
- // Reset the state of the panel to uninitialized if the browser window is
156
- // resized, so the dimensions are recalculated the next time it's opened.
157
- window.addEventListener('resize',function(event) {
158
- panelInitialized = false;
159
- },false);
160
-
161
- // Click handler for the hamburger button.
162
- hbButton.addEventListener('click',function(event) {
163
- // Break the event handler chain, or the handler for document → click
164
- // (about to be installed) may already be triggered by the current event.
165
- event.stopPropagation();
166
- event.preventDefault(); // prevent browser from acting on <a> click
167
- panelToggle(false);
168
- },false);
169
-
170
- function panelToggle(suppressAnimation) {
171
- if (panelShowing()) {
172
- document.removeEventListener('keydown',panelKeydown,/* useCapture == */true);
173
- document.removeEventListener('click',panelClick,false);
174
- // Transition back to hidden state.
175
- if (animate) {
176
- if (suppressAnimation) {
177
- var transition = panel.style.transition;
178
- panel.style.transition = '';
179
- panel.style.maxHeight = '0';
180
- panel.style.border = 'none';
181
- setTimeout(function() {
182
- // Make sure CSS transition won't take effect now, so restore it
183
- // asynchronously. Outer variable 'transition' still valid here.
184
- panel.style.transition = transition;
185
- }, 40); // 25ms is insufficient with Firefox 62
186
- }
187
- else {
188
- panel.style.maxHeight = '0';
189
- panelResetBorderTimerID = setTimeout(function() {
190
- // Browsers show a 1px high border line when maxHeight == 0,
191
- // our "hidden" state, so hide the borders in that state, too.
192
- panel.style.border = 'none';
193
- panelResetBorderTimerID = 0; // clear ID of completed timer
194
- }, animMS);
195
- }
196
- }
197
- else {
198
- panel.style.display = 'none';
199
- }
200
- }
201
- else {
202
- if (!hasChildren(panel)) {
203
- // Only get the sitemap once per page load: it isn't likely to
204
- // change on us.
205
- var xhr = new XMLHttpRequest();
206
- xhr.onload = function() {
207
- var doc = xhr.responseXML;
208
- if (doc) {
209
- var sm = doc.querySelector("ul#sitemap");
210
- if (sm && xhr.status == 200) {
211
- // Got sitemap. Insert it into the drop-down panel.
212
- panel.innerHTML = sm.outerHTML;
213
- // Display the panel
214
- showPanel();
215
- }
216
- }
217
- // else, can't parse response as HTML or XML
218
- }
219
- xhr.open("GET xhr.open("GET", url);
220
- xhr.responseType = "document";
221
- xhr.send();
222
- }
223
- else {
224
- showPanel(); // just show what we built abo{
225
- // Turn the button into ncompatible browser
226
- var panel = document.getElementById("hbdrop");
227
- if (!panel) return; // site admin might've nuked it
228
- if (!panel.style) return; // shouldn't happen, but b
--- a/skins/default/js.txt
+++ b/skins/default/js.txt
@@ -1,228 +0,0 @@
1 /*
2 ** Copyright © 2018 Warren Young
3 **
4 ** This program is free software; you can redistribute it and/or
5 ** modify it under the terms of the Simplified BSD License (also
6 ** known as the "2-Clause License" or "FreeBSD License".)
7 **
8 ** This program is distributed in the hope that it will be useful,
9 ** but without any warranty; without even the implied warranty of
10 ** merchantability or fitness for a particular purpose.
11 **
12 ** Contact: wyoung on the Fossil forum, https
13 *******************************************************************************
14 **
15 ** Thisspecific to the Fossil default skin.
16 ** Currently, the only thing this does is handle clicks on isition the hddrop container.
17 */
18 (function() {
19 var hbButton = document.getElementById("hbbtn");
20 if (!hbButton) return; // no hamburger button
21 if (!document.addEventListener) return; // Incompatible browser
22 var panel = document.getElementById("hbdrop");
23 if (!panel) return; // site admin might've nuked it
24 if (!panel.style) return; // shouldn't happen, but be sure
25 var panelBorder = panel.style.border;
26 var panelInitialized = false; // reset if browser window is resized
27 var panelResetBorderTimerID = 0; // used to cancel post-animation tasks
28
29 // Disable animation if this browser doesn't support CSS transitions.
30 //
31 // We need this ugly calling form for old browsers that don't allow
32 // panel.style.hasOwnProperty('transition'); catering to old browsers
33 // is the whole point here.
34 var animate = panel.style.transition !== null && (typeof(panel.style.transition) == "string");
35
36 // The duration of the animation can be overridden from the default skin
37 // header.txt by setting the "data-anim-ms" attribute of the panel.
38 var animMS = panel.getAttribute("data-anim-ms");
39 if (animMS) { // not null or empty string, parse it
40 animMS = parseInt(animMS);
41 if (isNaN(animMS) || animMS == 0)
42 animate = false; // disable animation if non-numeric or zero
43 else if (animMS < 0)
44 animMS = 400; // set default animation duration if negative
45 }
46 else // attribute is null or empty string, use default
47 animMS = 400;
48
49 // Calculate panel height despite its being hidden at call time.
50 // Based on https://stackoverflow.com/a/29047447/142454
51 var panelHeight; // computed on first panel display
52 function calculatePanelHeight() {
53
54 // Clear the max-height CSS property in case the panel size is recalculated
55 // after the browser window was resized.
56 panel.style.maxHeight = '';
57
58 // Get initial panel styles so we can restore them below.
59 var es = window.getComputedStyle(panel),
60 edis = es.display,
61 epos = es.position,
62 evis = es.visibility;
63
64 // Restyle the panel so we can measure its height while invisible.
65 panel.style.visibility = 'hidden';
66 panel.style.position = 'absolute';
67 panel.style.display = 'block';
68 panelHeight = panel.offsetHeight + 'px';
69
70 // Revert styles now that job is done.
71 panel.style.display = edis;
72 panel.style.position = epos;
73 panel.style.visibility = evis;
74 }
75
76 // Show the panel by changing the panel height, which kicks off the
77 // slide-open/closed transition set up in the XHR onload handler.
78 //
79 // Schedule the change for a near-future time in case this is the
80 // first call, where the div was initially invisible. If we were
81 // to change the panel's visibility and height at the same time
82 // instead, that would prevent the browser from seeing the height
83 // change as a state transition, so it'd skip the CSS transition:
84 //
85 // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples
86 function showPanel() {
87 // Cancel the timer to remove the panel border after the closing animation,
88 // otherwise double-clicking the hamburger button with the panel opened will
89 // remove the borders from the (closed and immediately reopened) panel.
90 if (panelResetBorderTimerID) {
91 clearTimeout(panelResetBorderTimerID);
92 panelResetBorderTimerID = 0;
93 }
94 if (animate) {
95 if (!panelInitialized) {
96 panelInitialized = true;
97 // Set up a CSS transition to animate the panel open and
98 // closed. Only needs to be done once per page load.
99 // Based on https://stackoverflow.com/a/29047447/142454
100 calculatePanelHeight();
101 panel.style.transition = 'max-height ' + animMS +
102 'ms ease-in-out';
103 panel.style.overflowY = 'hidden';
104 panel.style.maxHeight = '0';
105 }
106 setTimeout(function() {
107 panel.style.maxHeight = panelHeight;
108 panel.style.border = panelBorder;
109 }, 40); // 25ms is insufficient with Firefox 62
110 }
111 panel.style.display = 'block';
112 document.addEventListener('keydown',panelKeydown,/* useCapture == */true);
113 document.addEventListener('click',panelClick,false);
114 }
115
116 var panelKeydown = function(event) {
117 var key = event.which || event.keyCode;
118 if (key == 27) {
119 event.stopPropagation(); // ignore other keydown handlers
120 panelToggle(true);
121 }
122 };
123
124 var panelClick = function(event) {
125 if (!panel.contains(event.target)) {
126 // Call event.preventDefault() to have clicks outside the opened panel
127 // just close the panel, and swallow clicks on links or form elements.
128 //event.preventDefault();
129 panelToggle(true);
130 }
131 };
132
133 // Return true if the panel is showing.
134 function panelShowing() {
135 if (animate) {
136 return panel.style.maxHeight == panelHeight;
137 }
138 else {
139 return panel.style.display == 'block';
140 }
141 }
142
143 // Check if the specified HTML element has any child elements. Note that plain
144 // text nodes, comments, and any spaces (presentational or not) are ignored.
145 function hasChildren(element) {
146 var childElement = element.firstChild;
147 while (childElement) {
148 if (childElement.nodeType == 1) // Node.ELEMENT_NODE == 1
149 return true;
150 childElement = childElement.nextSibling;
151 }
152 return false;
153 }
154
155 // Reset the state of the panel to uninitialized if the browser window is
156 // resized, so the dimensions are recalculated the next time it's opened.
157 window.addEventListener('resize',function(event) {
158 panelInitialized = false;
159 },false);
160
161 // Click handler for the hamburger button.
162 hbButton.addEventListener('click',function(event) {
163 // Break the event handler chain, or the handler for document → click
164 // (about to be installed) may already be triggered by the current event.
165 event.stopPropagation();
166 event.preventDefault(); // prevent browser from acting on <a> click
167 panelToggle(false);
168 },false);
169
170 function panelToggle(suppressAnimation) {
171 if (panelShowing()) {
172 document.removeEventListener('keydown',panelKeydown,/* useCapture == */true);
173 document.removeEventListener('click',panelClick,false);
174 // Transition back to hidden state.
175 if (animate) {
176 if (suppressAnimation) {
177 var transition = panel.style.transition;
178 panel.style.transition = '';
179 panel.style.maxHeight = '0';
180 panel.style.border = 'none';
181 setTimeout(function() {
182 // Make sure CSS transition won't take effect now, so restore it
183 // asynchronously. Outer variable 'transition' still valid here.
184 panel.style.transition = transition;
185 }, 40); // 25ms is insufficient with Firefox 62
186 }
187 else {
188 panel.style.maxHeight = '0';
189 panelResetBorderTimerID = setTimeout(function() {
190 // Browsers show a 1px high border line when maxHeight == 0,
191 // our "hidden" state, so hide the borders in that state, too.
192 panel.style.border = 'none';
193 panelResetBorderTimerID = 0; // clear ID of completed timer
194 }, animMS);
195 }
196 }
197 else {
198 panel.style.display = 'none';
199 }
200 }
201 else {
202 if (!hasChildren(panel)) {
203 // Only get the sitemap once per page load: it isn't likely to
204 // change on us.
205 var xhr = new XMLHttpRequest();
206 xhr.onload = function() {
207 var doc = xhr.responseXML;
208 if (doc) {
209 var sm = doc.querySelector("ul#sitemap");
210 if (sm && xhr.status == 200) {
211 // Got sitemap. Insert it into the drop-down panel.
212 panel.innerHTML = sm.outerHTML;
213 // Display the panel
214 showPanel();
215 }
216 }
217 // else, can't parse response as HTML or XML
218 }
219 xhr.open("GET xhr.open("GET", url);
220 xhr.responseType = "document";
221 xhr.send();
222 }
223 else {
224 showPanel(); // just show what we built abo{
225 // Turn the button into ncompatible browser
226 var panel = document.getElementById("hbdrop");
227 if (!panel) return; // site admin might've nuked it
228 if (!panel.style) return; // shouldn't happen, but b
--- a/skins/default/js.txt
+++ b/skins/default/js.txt
@@ -1,228 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -3,24 +3,21 @@
33
margin: 0ex 1ex;
44
padding: 0px;
55
background-color: #485D7B;
66
font-family: sans-serif;
77
color: white;
8
- -moz-text-size-adjust: none;
9
- -webkit-text-size-adjust: none;
10
- -mx-text-size-adjust: none;
118
}
129
1310
/* The project logo in the upper left-hand corner of each page */
1411
div.logo {
1512
display: table-cell;
1613
text-align: center;
1714
vertical-align: bottom;
1815
font-weight: bold;
1916
color: white;
17
+ min-width: 50px;
2018
padding: 5 0 5 0em;
21
- min-width: 200px;
2219
white-space: nowrap;
2320
}
2421
2522
/* The page title centered at the top of each page */
2623
div.title {
@@ -40,11 +37,10 @@
4037
text-align: right;
4138
vertical-align: bottom;
4239
color: white;
4340
font-size: 0.8em;
4441
font-weight: bold;
45
- min-width: 200px;
4642
white-space: nowrap;
4743
}
4844
4945
/* The header across the top of the page */
5046
div.header {
@@ -63,10 +59,22 @@
6359
background-color: #76869D;
6460
border-top-left-radius: 8px;
6561
border-top-right-radius: 8px;
6662
color: white;
6763
}
64
+
65
+div#hbdrop {
66
+ background-color: #485D7B;
67
+ border-radius: 0 0 15px 15px;
68
+ border-left: 0.5em solid #76869d;
69
+ border-bottom: 1.2em solid #76869d;
70
+ display: none;
71
+ width: 98%;
72
+ position: absolute;
73
+ z-index: 20;
74
+}
75
+
6876
6977
/* The submenu bar that *sometimes* appears below the main menu */
7078
div.submenu, div.sectionmenu {
7179
padding: 3px 10px 3px 0px;
7280
font-size: 0.9em;
7381
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -3,24 +3,21 @@
3 margin: 0ex 1ex;
4 padding: 0px;
5 background-color: #485D7B;
6 font-family: sans-serif;
7 color: white;
8 -moz-text-size-adjust: none;
9 -webkit-text-size-adjust: none;
10 -mx-text-size-adjust: none;
11 }
12
13 /* The project logo in the upper left-hand corner of each page */
14 div.logo {
15 display: table-cell;
16 text-align: center;
17 vertical-align: bottom;
18 font-weight: bold;
19 color: white;
 
20 padding: 5 0 5 0em;
21 min-width: 200px;
22 white-space: nowrap;
23 }
24
25 /* The page title centered at the top of each page */
26 div.title {
@@ -40,11 +37,10 @@
40 text-align: right;
41 vertical-align: bottom;
42 color: white;
43 font-size: 0.8em;
44 font-weight: bold;
45 min-width: 200px;
46 white-space: nowrap;
47 }
48
49 /* The header across the top of the page */
50 div.header {
@@ -63,10 +59,22 @@
63 background-color: #76869D;
64 border-top-left-radius: 8px;
65 border-top-right-radius: 8px;
66 color: white;
67 }
 
 
 
 
 
 
 
 
 
 
 
 
68
69 /* The submenu bar that *sometimes* appears below the main menu */
70 div.submenu, div.sectionmenu {
71 padding: 3px 10px 3px 0px;
72 font-size: 0.9em;
73
--- skins/eagle/css.txt
+++ skins/eagle/css.txt
@@ -3,24 +3,21 @@
3 margin: 0ex 1ex;
4 padding: 0px;
5 background-color: #485D7B;
6 font-family: sans-serif;
7 color: white;
 
 
 
8 }
9
10 /* The project logo in the upper left-hand corner of each page */
11 div.logo {
12 display: table-cell;
13 text-align: center;
14 vertical-align: bottom;
15 font-weight: bold;
16 color: white;
17 min-width: 50px;
18 padding: 5 0 5 0em;
 
19 white-space: nowrap;
20 }
21
22 /* The page title centered at the top of each page */
23 div.title {
@@ -40,11 +37,10 @@
37 text-align: right;
38 vertical-align: bottom;
39 color: white;
40 font-size: 0.8em;
41 font-weight: bold;
 
42 white-space: nowrap;
43 }
44
45 /* The header across the top of the page */
46 div.header {
@@ -63,10 +59,22 @@
59 background-color: #76869D;
60 border-top-left-radius: 8px;
61 border-top-right-radius: 8px;
62 color: white;
63 }
64
65 div#hbdrop {
66 background-color: #485D7B;
67 border-radius: 0 0 15px 15px;
68 border-left: 0.5em solid #76869d;
69 border-bottom: 1.2em solid #76869d;
70 display: none;
71 width: 98%;
72 position: absolute;
73 z-index: 20;
74 }
75
76
77 /* The submenu bar that *sometimes* appears below the main menu */
78 div.submenu, div.sectionmenu {
79 padding: 3px 10px 3px 0px;
80 font-size: 0.9em;
81
--- skins/eagle/details.txt
+++ skins/eagle/details.txt
@@ -1,4 +1,5 @@
11
timeline-arrowheads: 1
22
timeline-circle-nodes: 0
33
timeline-color-graph-lines: 0
44
white-foreground: 1
5
+pikchr-background: 0x485d7b
56
--- skins/eagle/details.txt
+++ skins/eagle/details.txt
@@ -1,4 +1,5 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 0
3 timeline-color-graph-lines: 0
4 white-foreground: 1
 
5
--- skins/eagle/details.txt
+++ skins/eagle/details.txt
@@ -1,4 +1,5 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 0
3 timeline-color-graph-lines: 0
4 white-foreground: 1
5 pikchr-background: 0x485d7b
6
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -89,44 +89,20 @@
8989
setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
9090
}
9191
}
9292
updateClock();
9393
</script>
94
-<div class="mainmenu">
95
-<th1>
96
-proc menulink {url name} {
97
- upvar home home
98
- html "<a href='$home$url'>$name</a>\n"
99
-}
100
-menulink $index_page Home
101
-menulink /help Help
102
-if {[anycap jor]} {
103
- menulink /timeline Timeline
104
-}
105
-if {[anoncap oh]} {
106
- menulink /dir?ci=tip Files
107
-}
108
-if {[anoncap o]} {
109
- menulink /brlist Branches
110
- menulink /taglist Tags
111
-}
112
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
113
- menulink /forum Forum
114
-}
115
-if {[anoncap r]} {
116
- menulink /ticket Tickets
117
-}
118
-if {[anoncap j]} {
119
- menulink /wiki Wiki
120
-}
121
-menulink /sitemap More...
122
-if {[hascap s]} {
123
- menulink /setup Admin
124
-} elseif {[hascap a]} {
125
- menulink /setup_ulist Users
94
+<div class="mainmenu"><th1>
95
+html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>\n"
96
+builtin_request_js hbmenu.js
97
+foreach {name url expr class} $mainmenu {
98
+ if {![capexpr $expr]} continue
99
+ if {[string match /* $url]} {set url $home$url}
100
+ html "<a href='$url' class='$class'>$name</a>\n"
126101
}
127102
if {[info exists login]} {
128
- menulink /login Logout
103
+ html "<a href='$home/logout' class='desktoponly'>Logout</a>\n"
129104
} else {
130
- menulink /login Login
105
+ html "<a href='$home/login' class='desktoponly'>Login</a>\n"
131106
}
132107
</th1></div>
108
+<div id="hbdrop"></div>
133109
134110
DELETED skins/enhanced1/css.txt
135111
DELETED skins/enhanced1/details.txt
136112
DELETED skins/enhanced1/footer.txt
137113
DELETED skins/enhanced1/header.txt
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -89,44 +89,20 @@
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu">
95 <th1>
96 proc menulink {url name} {
97 upvar home home
98 html "<a href='$home$url'>$name</a>\n"
99 }
100 menulink $index_page Home
101 menulink /help Help
102 if {[anycap jor]} {
103 menulink /timeline Timeline
104 }
105 if {[anoncap oh]} {
106 menulink /dir?ci=tip Files
107 }
108 if {[anoncap o]} {
109 menulink /brlist Branches
110 menulink /taglist Tags
111 }
112 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
113 menulink /forum Forum
114 }
115 if {[anoncap r]} {
116 menulink /ticket Tickets
117 }
118 if {[anoncap j]} {
119 menulink /wiki Wiki
120 }
121 menulink /sitemap More...
122 if {[hascap s]} {
123 menulink /setup Admin
124 } elseif {[hascap a]} {
125 menulink /setup_ulist Users
126 }
127 if {[info exists login]} {
128 menulink /login Logout
129 } else {
130 menulink /login Login
131 }
132 </th1></div>
 
133
134 ELETED skins/enhanced1/css.txt
135 ELETED skins/enhanced1/details.txt
136 ELETED skins/enhanced1/footer.txt
137 ELETED skins/enhanced1/header.txt
--- skins/eagle/header.txt
+++ skins/eagle/header.txt
@@ -89,44 +89,20 @@
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu"><th1>
95 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>\n"
96 builtin_request_js hbmenu.js
97 foreach {name url expr class} $mainmenu {
98 if {![capexpr $expr]} continue
99 if {[string match /* $url]} {set url $home$url}
100 html "<a href='$url' class='$class'>$name</a>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101 }
102 if {[info exists login]} {
103 html "<a href='$home/logout' class='desktoponly'>Logout</a>\n"
104 } else {
105 html "<a href='$home/login' class='desktoponly'>Login</a>\n"
106 }
107 </th1></div>
108 <div id="hbdrop"></div>
109
110 ELETED skins/enhanced1/css.txt
111 ELETED skins/enhanced1/details.txt
112 ELETED skins/enhanced1/footer.txt
113 ELETED skins/enhanced1/header.txt
D skins/enhanced1/css.txt
-71
--- a/skins/enhanced1/css.txt
+++ b/skins/enhanced1/css.txt
@@ -1,71 +0,0 @@
1
-/* General settings for the entire page */
2
-body {
3
- margin: 0ex 1ex;
4
- padding: 0px;
5
- background-color: white;
6
- font-family: sans-serif;
7
- -moz-text-size-adjust: none;
8
- -webkit-text-size-adjust: none;
9
- -mx-text-size-adjust: none;
10
-}
11
-
12
-/* The project logo in the upper left-hand corner of each page */
13
-div.logo {
14
- display: table-cell;
15
- text-align: center;
16
- vertical-align: bottom;
17
- font-weight: bold;
18
- co20or: #558195;
19
- min-width: 50px;
20
- white-space: nowrap;
21
-}
22
-
23
-/* The page title centered at the top of each page */
24
-div.title {
25
- display: table-cell;
26
- font-size: 2em;
27
- font-weight: bold;
28
- text-align: center;
29
- padding: 0 0 0 1em;
30
- color: #558195;
31
- vertical-align: bottom;
32
- width: 100%;
33
-}
34
-
35
-/* The login status message in the top right-hand corner */
36
-div.status {
37
- display: table-cell;
38
- text-align: right;
39
- vertical-align: bottom;
40
- color: #558195;
41
- font-size: 0.8min-width: 20or: #558195e-space: nowrap;
42
-}
43
-
44
-/* The header across the top of the page */
45
-div.header {
46
- display: table;
47
- width: 100%;
48
-}
49
-
50
-/* The main menu bar that appears at the top of the page beneath
51
-** the header */
52
-diisplay: table;
53
- winmenu {
54
- padding: 5px;
55
- font-size: 0.9em;
56
- font-weight: bold;
57
- text-align: center;
58
- letter-spacing: 1px;
59
- background-color: #558195;
60
- border-top-left-radius: 8px;
61
- border-top-right-radius: 8px;
62
- color: white;
63
-}
64
-
65
-/* The submenu bar that *sometimes* appedis below the main menu */
66
-div.submenu, div.sectionmenu {
67
- padding: 3px 10px 3px 0px;
68
- font-size: 0.9em;
69
- text-align: center;
70
- background-color: div.mainmenu a, div.mainmenu alig.olor: #558195;.581didi entire page */
71
-body/*didivdiv-spa
--- a/skins/enhanced1/css.txt
+++ b/skins/enhanced1/css.txt
@@ -1,71 +0,0 @@
1 /* General settings for the entire page */
2 body {
3 margin: 0ex 1ex;
4 padding: 0px;
5 background-color: white;
6 font-family: sans-serif;
7 -moz-text-size-adjust: none;
8 -webkit-text-size-adjust: none;
9 -mx-text-size-adjust: none;
10 }
11
12 /* The project logo in the upper left-hand corner of each page */
13 div.logo {
14 display: table-cell;
15 text-align: center;
16 vertical-align: bottom;
17 font-weight: bold;
18 co20or: #558195;
19 min-width: 50px;
20 white-space: nowrap;
21 }
22
23 /* The page title centered at the top of each page */
24 div.title {
25 display: table-cell;
26 font-size: 2em;
27 font-weight: bold;
28 text-align: center;
29 padding: 0 0 0 1em;
30 color: #558195;
31 vertical-align: bottom;
32 width: 100%;
33 }
34
35 /* The login status message in the top right-hand corner */
36 div.status {
37 display: table-cell;
38 text-align: right;
39 vertical-align: bottom;
40 color: #558195;
41 font-size: 0.8min-width: 20or: #558195e-space: nowrap;
42 }
43
44 /* The header across the top of the page */
45 div.header {
46 display: table;
47 width: 100%;
48 }
49
50 /* The main menu bar that appears at the top of the page beneath
51 ** the header */
52 diisplay: table;
53 winmenu {
54 padding: 5px;
55 font-size: 0.9em;
56 font-weight: bold;
57 text-align: center;
58 letter-spacing: 1px;
59 background-color: #558195;
60 border-top-left-radius: 8px;
61 border-top-right-radius: 8px;
62 color: white;
63 }
64
65 /* The submenu bar that *sometimes* appedis below the main menu */
66 div.submenu, div.sectionmenu {
67 padding: 3px 10px 3px 0px;
68 font-size: 0.9em;
69 text-align: center;
70 background-color: div.mainmenu a, div.mainmenu alig.olor: #558195;.581didi entire page */
71 body/*didivdiv-spa
--- a/skins/enhanced1/css.txt
+++ b/skins/enhanced1/css.txt
@@ -1,71 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/enhanced1/details.txt
-3
--- a/skins/enhanced1/details.txt
+++ b/skins/enhanced1/details.txt
@@ -1,3 +0,0 @@
1
-timeline-arrowheads: 1
2
-timeline-circle-nodes: 0
3
-timeline-color-graph-lines: 0
--- a/skins/enhanced1/details.txt
+++ b/skins/enhanced1/details.txt
@@ -1,3 +0,0 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 0
3 timeline-color-graph-lines: 0
--- a/skins/enhanced1/details.txt
+++ b/skins/enhanced1/details.txt
@@ -1,3 +0,0 @@
 
 
 
D skins/enhanced1/footer.txt
-24
--- a/skins/enhanced1/footer.txt
+++ b/skins/enhanced1/footer.txt
@@ -1,24 +0,0 @@
1
-<div class="footer">
2
- <th1>
3
- proc getTclVersion {} {
4
- if {[catch {tclEval info patchlevel} tclVersion] == 0} {
5
- return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion"
6
- }
7
- return ""
8
- }
9
- proc getVersion { version } {
10
- set length [string length $version]
11
- return [string range $version 1 [expr {$length - 2}]]
12
- }
13
- set version [getVersion $manifest_version]
14
- set tclVersion [getTclVersiowww.n]
15
- set fossilUrl https://fossil-scm.org
16
- set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end]
17
- </th1>
18
- This page was generated in about
19
- <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
20
- <a href="$fossilUrl/">Fossil</a>
21
- version $release_version $tclVersion
22
- <a href="$fossilUrl/index.html/info/$version">$manifest_version</a>
23
- <a href="$fossilUrl/index.html/timeline?c=$fossilDate&amp;div>
24
-</body></html>
--- a/skins/enhanced1/footer.txt
+++ b/skins/enhanced1/footer.txt
@@ -1,24 +0,0 @@
1 <div class="footer">
2 <th1>
3 proc getTclVersion {} {
4 if {[catch {tclEval info patchlevel} tclVersion] == 0} {
5 return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion"
6 }
7 return ""
8 }
9 proc getVersion { version } {
10 set length [string length $version]
11 return [string range $version 1 [expr {$length - 2}]]
12 }
13 set version [getVersion $manifest_version]
14 set tclVersion [getTclVersiowww.n]
15 set fossilUrl https://fossil-scm.org
16 set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end]
17 </th1>
18 This page was generated in about
19 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
20 <a href="$fossilUrl/">Fossil</a>
21 version $release_version $tclVersion
22 <a href="$fossilUrl/index.html/info/$version">$manifest_version</a>
23 <a href="$fossilUrl/index.html/timeline?c=$fossilDate&amp;div>
24 </body></html>
--- a/skins/enhanced1/footer.txt
+++ b/skins/enhanced1/footer.txt
@@ -1,24 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/enhanced1/header.txt
-68
--- a/skins/enhanced1/header.txt
+++ b/skins/enhanced1/header.txt
@@ -1,68 +0,0 @@
1
-<div class="header">
2
- <div class="logo">
3
- <th1>
4
- ##
5
- ## NOTE: The purpose of this procedure is to take the base URL of the
6
- ## Fossil project and return the root of the entire web site using
7
- ## the same URI scheme as the base URL (e.g. http or https).
8
- ##
9
- proc getLogoUrl { baseurl } {
10
- set idx(first) [string first // $baseurl]
11
- if {$idx(first) != -1} {
12
- ##
13
- ## NOTE: Skip second slash.
14
- ##
15
- set idx(first+1) [expr {$idx(first) + 2}]
16
- ##
17
- ## NOTE: (part 1) The [string first] command does NOT actually
18
- ## support the optional startIndex argument as specified
19
- ## in the TH1 support manual; therefore, we fake it by
20
- ## using the [string range] command and then adding the
21
- ## necessary offset to the resulting index manually
22
- ## (below). In Tcl, we could use the following instead:
23
- ##
24
- ## set idx(next) [string first / $baseurl $idx(first+1)]
25
- ##
26
- set idx(nextRange) [string range $baseurl $idx(first+1) end]
27
- set idx(next) [string first / $idx(nextRange)]
28
- if {$idx(next) != -1} {
29
- ##
30
- ## NOTE: (part 2) Add the necessary offset to the result of
31
- ## the search for the next slash (i.e. the one after
32
- ## the initial search for the two slashes).
33
- ##
34
- s
35
-<th1>
36
-proc menulink {url name} {
37
- upvar home home
38
- html "<a href='$home$url'>$name</a>\n"
39
-}
40
-menulink $index_page Home
41
-menuljor]} {
42
- menulink /nycap ijr2]} {
43
- menulink /timeline Timeline
44
-}
45
-if {[anoncap oh]} {
46
- menulink /dir?ci=tip Files
47
-}
48
-if {[anoncap o]} {
49
- menulink /brlist Branches
50
- menulink /taglist Tags
51
-}
52
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
53
- menulink /forum Forum
54
-}
55
-if {[anoncap r]} {
56
- menulink /[anycap nr]} {
57
- menulink /ticket Tickets
58
-}
59
-if {[anoncap j]} {
60
- menulink /wiki Wiki
61
-}
62
-if {[hascap s]} {
63
- menulink /setup Admin
64
-} elseif {[hascap a]} {
65
- menulink /setup_ulist Users
66
-}
67
-e it by
68
- ## usinmenulink /login L
--- a/skins/enhanced1/header.txt
+++ b/skins/enhanced1/header.txt
@@ -1,68 +0,0 @@
1 <div class="header">
2 <div class="logo">
3 <th1>
4 ##
5 ## NOTE: The purpose of this procedure is to take the base URL of the
6 ## Fossil project and return the root of the entire web site using
7 ## the same URI scheme as the base URL (e.g. http or https).
8 ##
9 proc getLogoUrl { baseurl } {
10 set idx(first) [string first // $baseurl]
11 if {$idx(first) != -1} {
12 ##
13 ## NOTE: Skip second slash.
14 ##
15 set idx(first+1) [expr {$idx(first) + 2}]
16 ##
17 ## NOTE: (part 1) The [string first] command does NOT actually
18 ## support the optional startIndex argument as specified
19 ## in the TH1 support manual; therefore, we fake it by
20 ## using the [string range] command and then adding the
21 ## necessary offset to the resulting index manually
22 ## (below). In Tcl, we could use the following instead:
23 ##
24 ## set idx(next) [string first / $baseurl $idx(first+1)]
25 ##
26 set idx(nextRange) [string range $baseurl $idx(first+1) end]
27 set idx(next) [string first / $idx(nextRange)]
28 if {$idx(next) != -1} {
29 ##
30 ## NOTE: (part 2) Add the necessary offset to the result of
31 ## the search for the next slash (i.e. the one after
32 ## the initial search for the two slashes).
33 ##
34 s
35 <th1>
36 proc menulink {url name} {
37 upvar home home
38 html "<a href='$home$url'>$name</a>\n"
39 }
40 menulink $index_page Home
41 menuljor]} {
42 menulink /nycap ijr2]} {
43 menulink /timeline Timeline
44 }
45 if {[anoncap oh]} {
46 menulink /dir?ci=tip Files
47 }
48 if {[anoncap o]} {
49 menulink /brlist Branches
50 menulink /taglist Tags
51 }
52 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
53 menulink /forum Forum
54 }
55 if {[anoncap r]} {
56 menulink /[anycap nr]} {
57 menulink /ticket Tickets
58 }
59 if {[anoncap j]} {
60 menulink /wiki Wiki
61 }
62 if {[hascap s]} {
63 menulink /setup Admin
64 } elseif {[hascap a]} {
65 menulink /setup_ulist Users
66 }
67 e it by
68 ## usinmenulink /login L
--- a/skins/enhanced1/header.txt
+++ b/skins/enhanced1/header.txt
@@ -1,68 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- skins/khaki/css.txt
+++ skins/khaki/css.txt
@@ -58,11 +58,24 @@
5858
font-weight: bold;
5959
text-align: center;
6060
letter-spacing: 1px;
6161
background-color: #a09048;
6262
color: black;
63
+ z-index: 21; /* just above hbdrop */
64
+}
65
+div#hbdrop {
66
+ background-color: #fef3bc;
67
+ border: 2px solid #a09048;
68
+ border-radius: 0 0 0.5em 0.5em;
69
+ display: none;
70
+ left: 2em;
71
+ width: 90%;
72
+ padding-right: 1em;
73
+ position: absolute;
74
+ z-index: 20; /* just below mainmenu, but above timeline bubbles */
6375
}
76
+
6477
6578
/* The submenu bar that *sometimes* appears below the main menu */
6679
div.submenu, div.sectionmenu {
6780
padding: 3px 10px 3px 0px;
6881
font-size: 0.9em;
@@ -76,24 +89,30 @@
7689
padding: 3px 10px 3px 10px;
7790
color: white;
7891
text-decoration: none;
7992
}
8093
div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover,
81
-div.submenu label:hover {
94
+div.submenu label:hover, div#hbdrop a:hover {
8295
color: #a09048;
8396
background-color: white;
8497
}
8598
8699
/* All page content from the bottom of the menu or submenu down to
87100
** the footer */
88101
div.content {
89102
padding: 1ex 5px;
90103
}
91
-div.content a { color: #706532; }
92
-div.content a:link { color: #706532; }
93
-div.content a:visited { color: #704032; }
94
-div.content a:hover { background-color: white; color: #706532; }
104
+div.content a, div#hbdrop a { color: #706532; }
105
+div.content a:link, div#hbdrop a:link { color: #706532; }
106
+div.content a:visited, div#hbdrop a:visited { color: #704032; }
107
+div.content a:hover, div#hbdrop a:hover {
108
+ background-color: white; color: #706532;
109
+}
110
+a, a:visited {
111
+ text-decoration: none;
112
+}
113
+
95114
96115
/* Some pages have section dividers */
97116
div.section {
98117
margin-bottom: 0px;
99118
margin-top: 1em;
100119
--- skins/khaki/css.txt
+++ skins/khaki/css.txt
@@ -58,11 +58,24 @@
58 font-weight: bold;
59 text-align: center;
60 letter-spacing: 1px;
61 background-color: #a09048;
62 color: black;
 
 
 
 
 
 
 
 
 
 
 
 
63 }
 
64
65 /* The submenu bar that *sometimes* appears below the main menu */
66 div.submenu, div.sectionmenu {
67 padding: 3px 10px 3px 0px;
68 font-size: 0.9em;
@@ -76,24 +89,30 @@
76 padding: 3px 10px 3px 10px;
77 color: white;
78 text-decoration: none;
79 }
80 div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover,
81 div.submenu label:hover {
82 color: #a09048;
83 background-color: white;
84 }
85
86 /* All page content from the bottom of the menu or submenu down to
87 ** the footer */
88 div.content {
89 padding: 1ex 5px;
90 }
91 div.content a { color: #706532; }
92 div.content a:link { color: #706532; }
93 div.content a:visited { color: #704032; }
94 div.content a:hover { background-color: white; color: #706532; }
 
 
 
 
 
 
95
96 /* Some pages have section dividers */
97 div.section {
98 margin-bottom: 0px;
99 margin-top: 1em;
100
--- skins/khaki/css.txt
+++ skins/khaki/css.txt
@@ -58,11 +58,24 @@
58 font-weight: bold;
59 text-align: center;
60 letter-spacing: 1px;
61 background-color: #a09048;
62 color: black;
63 z-index: 21; /* just above hbdrop */
64 }
65 div#hbdrop {
66 background-color: #fef3bc;
67 border: 2px solid #a09048;
68 border-radius: 0 0 0.5em 0.5em;
69 display: none;
70 left: 2em;
71 width: 90%;
72 padding-right: 1em;
73 position: absolute;
74 z-index: 20; /* just below mainmenu, but above timeline bubbles */
75 }
76
77
78 /* The submenu bar that *sometimes* appears below the main menu */
79 div.submenu, div.sectionmenu {
80 padding: 3px 10px 3px 0px;
81 font-size: 0.9em;
@@ -76,24 +89,30 @@
89 padding: 3px 10px 3px 10px;
90 color: white;
91 text-decoration: none;
92 }
93 div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover,
94 div.submenu label:hover, div#hbdrop a:hover {
95 color: #a09048;
96 background-color: white;
97 }
98
99 /* All page content from the bottom of the menu or submenu down to
100 ** the footer */
101 div.content {
102 padding: 1ex 5px;
103 }
104 div.content a, div#hbdrop a { color: #706532; }
105 div.content a:link, div#hbdrop a:link { color: #706532; }
106 div.content a:visited, div#hbdrop a:visited { color: #704032; }
107 div.content a:hover, div#hbdrop a:hover {
108 background-color: white; color: #706532;
109 }
110 a, a:visited {
111 text-decoration: none;
112 }
113
114
115 /* Some pages have section dividers */
116 div.section {
117 margin-bottom: 0px;
118 margin-top: 1em;
119
--- skins/khaki/details.txt
+++ skins/khaki/details.txt
@@ -1,4 +1,4 @@
11
timeline-arrowheads: 1
2
-timeline-circle-nodes: 0
3
-timeline-color-graph-lines: 0
2
+timeline-circle-nodes: 1
3
+timeline-color-graph-lines: 1
44
white-foreground: 0
55
--- skins/khaki/details.txt
+++ skins/khaki/details.txt
@@ -1,4 +1,4 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 0
3 timeline-color-graph-lines: 0
4 white-foreground: 0
5
--- skins/khaki/details.txt
+++ skins/khaki/details.txt
@@ -1,4 +1,4 @@
1 timeline-arrowheads: 1
2 timeline-circle-nodes: 1
3 timeline-color-graph-lines: 1
4 white-foreground: 0
5
--- skins/khaki/header.txt
+++ skins/khaki/header.txt
@@ -8,38 +8,15 @@
88
} else {
99
puts "Not logged in"
1010
}
1111
</th1></div>
1212
</div>
13
-<div class="mainmenu">
14
-<th1>
15
-html "<a href='$home$index_page'>Home</a>\n"
16
-if {[anycap jor]} {
17
- html "<a href='$home/timeline'>Timeline</a>\n"
18
-}
19
-if {[anoncap oh]} {
20
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
21
-}
22
-if {[anoncap o]} {
23
- html "<a href='$home/brlist'>Branches</a>\n"
24
- html "<a href='$home/taglist'>Tags</a>\n"
25
-}
26
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
27
- html "<a href='$home/forum'>Forum</a>\n"
28
-}
29
-if {[anoncap r]} {
30
- html "<a href='$home/ticket'>Tickets</a>\n"
31
-}
32
-if {[anoncap j]} {
33
- html "<a href='$home/wiki'>Wiki</a>\n"
34
-}
35
-if {[hascap s]} {
36
- html "<a href='$home/setup'>Admin</a>\n"
37
-} elseif {[hascap a]} {
38
- html "<a href='$home/setup_ulist'>Users</a>\n"
39
-}
40
-if {[info exists login]} {
41
- html "<a href='$home/login'>Logout</a>\n"
42
-} else {
43
- html "<a href='$home/login'>Login</a>\n"
13
+<div class="mainmenu"><th1>
14
+html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
15
+builtin_request_js hbmenu.js
16
+foreach {name url expr class} $mainmenu {
17
+ if {![capexpr $expr]} continue
18
+ if {[string match /* $url]} {set url $home$url}
19
+ html "<a href='$url' class='$class'>$name</a>\n"
4420
}
4521
</th1></div>
22
+<div id='hbdrop'></div>
4623
--- skins/khaki/header.txt
+++ skins/khaki/header.txt
@@ -8,38 +8,15 @@
8 } else {
9 puts "Not logged in"
10 }
11 </th1></div>
12 </div>
13 <div class="mainmenu">
14 <th1>
15 html "<a href='$home$index_page'>Home</a>\n"
16 if {[anycap jor]} {
17 html "<a href='$home/timeline'>Timeline</a>\n"
18 }
19 if {[anoncap oh]} {
20 html "<a href='$home/tree?ci=tip'>Files</a>\n"
21 }
22 if {[anoncap o]} {
23 html "<a href='$home/brlist'>Branches</a>\n"
24 html "<a href='$home/taglist'>Tags</a>\n"
25 }
26 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
27 html "<a href='$home/forum'>Forum</a>\n"
28 }
29 if {[anoncap r]} {
30 html "<a href='$home/ticket'>Tickets</a>\n"
31 }
32 if {[anoncap j]} {
33 html "<a href='$home/wiki'>Wiki</a>\n"
34 }
35 if {[hascap s]} {
36 html "<a href='$home/setup'>Admin</a>\n"
37 } elseif {[hascap a]} {
38 html "<a href='$home/setup_ulist'>Users</a>\n"
39 }
40 if {[info exists login]} {
41 html "<a href='$home/login'>Logout</a>\n"
42 } else {
43 html "<a href='$home/login'>Login</a>\n"
44 }
45 </th1></div>
 
46
--- skins/khaki/header.txt
+++ skins/khaki/header.txt
@@ -8,38 +8,15 @@
8 } else {
9 puts "Not logged in"
10 }
11 </th1></div>
12 </div>
13 <div class="mainmenu"><th1>
14 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
15 builtin_request_js hbmenu.js
16 foreach {name url expr class} $mainmenu {
17 if {![capexpr $expr]} continue
18 if {[string match /* $url]} {set url $home$url}
19 html "<a href='$url' class='$class'>$name</a>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20 }
21 </th1></div>
22 <div id='hbdrop'></div>
23
--- skins/original/css.txt
+++ skins/original/css.txt
@@ -14,11 +14,11 @@
1414
display: table-cell;
1515
text-align: center;
1616
vertical-align: bottom;
1717
font-weight: bold;
1818
color: #558195;
19
- min-width: 200px;
19
+ min-width: 50px;
2020
white-space: nowrap;
2121
}
2222
2323
/* The page title centered at the top of each page */
2424
div.title {
@@ -38,11 +38,10 @@
3838
text-align: right;
3939
vertical-align: bottom;
4040
color: #558195;
4141
font-size: 0.8em;
4242
font-weight: bold;
43
- min-width: 200px;
4443
white-space: nowrap;
4544
}
4645
4746
/* The header across the top of the page */
4847
div.header {
@@ -51,11 +50,11 @@
5150
}
5251
5352
/* The main menu bar that appears at the top of the page beneath
5453
** the header */
5554
div.mainmenu {
56
- padding: 5px 10px 5px 10px;
55
+ padding: 5px;
5756
font-size: 0.9em;
5857
font-weight: bold;
5958
text-align: center;
6059
letter-spacing: 1px;
6160
background-color: #558195;
6261
--- skins/original/css.txt
+++ skins/original/css.txt
@@ -14,11 +14,11 @@
14 display: table-cell;
15 text-align: center;
16 vertical-align: bottom;
17 font-weight: bold;
18 color: #558195;
19 min-width: 200px;
20 white-space: nowrap;
21 }
22
23 /* The page title centered at the top of each page */
24 div.title {
@@ -38,11 +38,10 @@
38 text-align: right;
39 vertical-align: bottom;
40 color: #558195;
41 font-size: 0.8em;
42 font-weight: bold;
43 min-width: 200px;
44 white-space: nowrap;
45 }
46
47 /* The header across the top of the page */
48 div.header {
@@ -51,11 +50,11 @@
51 }
52
53 /* The main menu bar that appears at the top of the page beneath
54 ** the header */
55 div.mainmenu {
56 padding: 5px 10px 5px 10px;
57 font-size: 0.9em;
58 font-weight: bold;
59 text-align: center;
60 letter-spacing: 1px;
61 background-color: #558195;
62
--- skins/original/css.txt
+++ skins/original/css.txt
@@ -14,11 +14,11 @@
14 display: table-cell;
15 text-align: center;
16 vertical-align: bottom;
17 font-weight: bold;
18 color: #558195;
19 min-width: 50px;
20 white-space: nowrap;
21 }
22
23 /* The page title centered at the top of each page */
24 div.title {
@@ -38,11 +38,10 @@
38 text-align: right;
39 vertical-align: bottom;
40 color: #558195;
41 font-size: 0.8em;
42 font-weight: bold;
 
43 white-space: nowrap;
44 }
45
46 /* The header across the top of the page */
47 div.header {
@@ -51,11 +50,11 @@
50 }
51
52 /* The main menu bar that appears at the top of the page beneath
53 ** the header */
54 div.mainmenu {
55 padding: 5px;
56 font-size: 0.9em;
57 font-weight: bold;
58 text-align: center;
59 letter-spacing: 1px;
60 background-color: #558195;
61
--- skins/original/footer.txt
+++ skins/original/footer.txt
@@ -1,5 +1,24 @@
11
<div class="footer">
2
-This page was generated in about
3
-<th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
4
-Fossil $release_version $manifest_version $manifest_date
2
+ <th1>
3
+ proc getTclVersion {} {
4
+ if {[catch {tclEval info patchlevel} tclVersion] == 0} {
5
+ return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion"
6
+ }
7
+ return ""
8
+ }
9
+ proc getVersion { version } {
10
+ set length [string length $version]
11
+ return [string range $version 1 [expr {$length - 2}]]
12
+ }
13
+ set version [getVersion $manifest_version]
14
+ set tclVersion [getTclVersion]
15
+ set fossilUrl https://www.fossil-scm.org
16
+ set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end]
17
+ </th1>
18
+ This page was generated in about
19
+ <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
20
+ <a href="$fossilUrl/">Fossil</a>
21
+ version $release_version $tclVersion
22
+ <a href="$fossilUrl/index.html/info/$version">$manifest_version</a>
23
+ <a href="$fossilUrl/index.html/timeline?c=$fossilDate&amp;y=ci">$manifest_date</a>
524
</div>
625
--- skins/original/footer.txt
+++ skins/original/footer.txt
@@ -1,5 +1,24 @@
1 <div class="footer">
2 This page was generated in about
3 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
4 Fossil $release_version $manifest_version $manifest_date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5 </div>
6
--- skins/original/footer.txt
+++ skins/original/footer.txt
@@ -1,5 +1,24 @@
1 <div class="footer">
2 <th1>
3 proc getTclVersion {} {
4 if {[catch {tclEval info patchlevel} tclVersion] == 0} {
5 return "<a href=\"https://www.tcl.tk/\">Tcl</a> version $tclVersion"
6 }
7 return ""
8 }
9 proc getVersion { version } {
10 set length [string length $version]
11 return [string range $version 1 [expr {$length - 2}]]
12 }
13 set version [getVersion $manifest_version]
14 set tclVersion [getTclVersion]
15 set fossilUrl https://www.fossil-scm.org
16 set fossilDate [string range $manifest_date 0 9]T[string range $manifest_date 11 end]
17 </th1>
18 This page was generated in about
19 <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s by
20 <a href="$fossilUrl/">Fossil</a>
21 version $release_version $tclVersion
22 <a href="$fossilUrl/index.html/info/$version">$manifest_version</a>
23 <a href="$fossilUrl/index.html/timeline?c=$fossilDate&amp;y=ci">$manifest_date</a>
24 </div>
25
--- skins/original/header.txt
+++ skins/original/header.txt
@@ -1,46 +1,105 @@
11
<div class="header">
22
<div class="logo">
3
- <img src="$logo_image_url" alt="logo" />
3
+ <th1>
4
+ ##
5
+ ## NOTE: The purpose of this procedure is to take the base URL of the
6
+ ## Fossil project and return the root of the entire web site using
7
+ ## the same URI scheme as the base URL (e.g. http or https).
8
+ ##
9
+ proc getLogoUrl { baseurl } {
10
+ set idx(first) [string first // $baseurl]
11
+ if {$idx(first) != -1} {
12
+ ##
13
+ ## NOTE: Skip second slash.
14
+ ##
15
+ set idx(first+1) [expr {$idx(first) + 2}]
16
+ ##
17
+ ## NOTE: (part 1) The [string first] command does NOT actually
18
+ ## support the optional startIndex argument as specified
19
+ ## in the TH1 support manual; therefore, we fake it by
20
+ ## using the [string range] command and then adding the
21
+ ## necessary offset to the resulting index manually
22
+ ## (below). In Tcl, we could use the following instead:
23
+ ##
24
+ ## set idx(next) [string first / $baseurl $idx(first+1)]
25
+ ##
26
+ set idx(nextRange) [string range $baseurl $idx(first+1) end]
27
+ set idx(next) [string first / $idx(nextRange)]
28
+ if {$idx(next) != -1} {
29
+ ##
30
+ ## NOTE: (part 2) Add the necessary offset to the result of
31
+ ## the search for the next slash (i.e. the one after
32
+ ## the initial search for the two slashes).
33
+ ##
34
+ set idx(next) [expr {$idx(next) + $idx(first+1)}]
35
+ ##
36
+ ## NOTE: Back up one character from the next slash.
37
+ ##
38
+ set idx(next-1) [expr {$idx(next) - 1}]
39
+ ##
40
+ ## NOTE: Extract the URI scheme and host from the base URL.
41
+ ##
42
+ set scheme [string range $baseurl 0 $idx(first)]
43
+ set host [string range $baseurl $idx(first+1) $idx(next-1)]
44
+ ##
45
+ ## NOTE: Try to stay in SSL mode if we are there now.
46
+ ##
47
+ if {[string compare $scheme http:/] == 0} {
48
+ set scheme http://
49
+ } else {
50
+ set scheme https://
51
+ }
52
+ set logourl $scheme$host/
53
+ } else {
54
+ set logourl $baseurl
55
+ }
56
+ } else {
57
+ set logourl $baseurl
58
+ }
59
+ return $logourl
60
+ }
61
+ set logourl [getLogoUrl $baseurl]
62
+ </th1>
63
+ <a href="$logourl">
64
+ <img src="$logo_image_url" border="0" alt="$project_name">
65
+ </a>
466
</div>
5
- <div class="title"><small>$<project_name></small><br />$<title></div>
6
- <div class="status"><th1>
67
+ <div class="title">$<title></div>
68
+ <div class="status"><nobr><th1>
769
if {[info exists login]} {
870
puts "Logged in as $login"
971
} else {
1072
puts "Not logged in"
1173
}
12
- </th1></div>
13
-</div>
14
-<div class="mainmenu">
15
-<th1>
16
-html "<a href='$home$index_page'>Home</a>\n"
17
-if {[anycap jor]} {
18
- html "<a href='$home/timeline'>Timeline</a>\n"
19
-}
20
-if {[anoncap oh]} {
21
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
22
-}
23
-if {[anoncap o]} {
24
- html "<a href='$home/brlist'>Branches</a>\n"
25
- html "<a href='$home/taglist'>Tags</a>\n"
26
-}
27
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
28
- html "<a href='$home/forum'>Forum</a>\n"
29
-}
30
-if {[anoncap r]} {
31
- html "<a href='$home/ticket'>Tickets</a>\n"
32
-}
33
-if {[anoncap j]} {
34
- html "<a href='$home/wiki'>Wiki</a>\n"
35
-}
36
-if {[hascap s]} {
37
- html "<a href='$home/setup'>Admin</a>\n"
38
-} elseif {[hascap a]} {
39
- html "<a href='$home/setup_ulist'>Users</a>\n"
40
-}
41
-if {[info exists login]} {
42
- html "<a href='$home/login'>Logout</a>\n"
43
-} else {
44
- html "<a href='$home/login'>Login</a>\n"
74
+ </th1></nobr><small><div id="clock"></div></small></div>
75
+</div>
76
+<th1>html "<script nonce='$nonce'>"</th1>
77
+function updateClock(){
78
+ var e = document.getElementById("clock");
79
+ if(e){
80
+ var d = new Date();
81
+ function f(n) {
82
+ return n < 10 ? '0' + n : n;
83
+ }
84
+ e.innerHTML = d.getUTCFullYear()+ '-' +
85
+ f(d.getUTCMonth() + 1) + '-' +
86
+ f(d.getUTCDate()) + ' ' +
87
+ f(d.getUTCHours()) + ':' +
88
+ f(d.getUTCMinutes());
89
+ setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90
+ }
91
+}
92
+updateClock();
93
+</script>
94
+<div class="mainmenu"><th1>
95
+set sitemap 0
96
+foreach {name url expr class} $mainmenu {
97
+ if {![capexpr $expr]} continue
98
+ if {[string match /* $url]} {set url $home$url}
99
+ html "<a href='$url' class='$class'>$name</a>\n"
100
+ if {[string match */sitemap $url]} {set sitemap 1}
101
+}
102
+if {!$sitemap} {
103
+ html "<a href='$home/sitemap'>...</a>"
45104
}
46105
</th1></div>
47106
--- skins/original/header.txt
+++ skins/original/header.txt
@@ -1,46 +1,105 @@
1 <div class="header">
2 <div class="logo">
3 <img src="$logo_image_url" alt="logo" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4 </div>
5 <div class="title"><small>$<project_name></small><br />$<title></div>
6 <div class="status"><th1>
7 if {[info exists login]} {
8 puts "Logged in as $login"
9 } else {
10 puts "Not logged in"
11 }
12 </th1></div>
13 </div>
14 <div class="mainmenu">
15 <th1>
16 html "<a href='$home$index_page'>Home</a>\n"
17 if {[anycap jor]} {
18 html "<a href='$home/timeline'>Timeline</a>\n"
19 }
20 if {[anoncap oh]} {
21 html "<a href='$home/tree?ci=tip'>Files</a>\n"
22 }
23 if {[anoncap o]} {
24 html "<a href='$home/brlist'>Branches</a>\n"
25 html "<a href='$home/taglist'>Tags</a>\n"
26 }
27 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
28 html "<a href='$home/forum'>Forum</a>\n"
29 }
30 if {[anoncap r]} {
31 html "<a href='$home/ticket'>Tickets</a>\n"
32 }
33 if {[anoncap j]} {
34 html "<a href='$home/wiki'>Wiki</a>\n"
35 }
36 if {[hascap s]} {
37 html "<a href='$home/setup'>Admin</a>\n"
38 } elseif {[hascap a]} {
39 html "<a href='$home/setup_ulist'>Users</a>\n"
40 }
41 if {[info exists login]} {
42 html "<a href='$home/login'>Logout</a>\n"
43 } else {
44 html "<a href='$home/login'>Login</a>\n"
45 }
46 </th1></div>
47
--- skins/original/header.txt
+++ skins/original/header.txt
@@ -1,46 +1,105 @@
1 <div class="header">
2 <div class="logo">
3 <th1>
4 ##
5 ## NOTE: The purpose of this procedure is to take the base URL of the
6 ## Fossil project and return the root of the entire web site using
7 ## the same URI scheme as the base URL (e.g. http or https).
8 ##
9 proc getLogoUrl { baseurl } {
10 set idx(first) [string first // $baseurl]
11 if {$idx(first) != -1} {
12 ##
13 ## NOTE: Skip second slash.
14 ##
15 set idx(first+1) [expr {$idx(first) + 2}]
16 ##
17 ## NOTE: (part 1) The [string first] command does NOT actually
18 ## support the optional startIndex argument as specified
19 ## in the TH1 support manual; therefore, we fake it by
20 ## using the [string range] command and then adding the
21 ## necessary offset to the resulting index manually
22 ## (below). In Tcl, we could use the following instead:
23 ##
24 ## set idx(next) [string first / $baseurl $idx(first+1)]
25 ##
26 set idx(nextRange) [string range $baseurl $idx(first+1) end]
27 set idx(next) [string first / $idx(nextRange)]
28 if {$idx(next) != -1} {
29 ##
30 ## NOTE: (part 2) Add the necessary offset to the result of
31 ## the search for the next slash (i.e. the one after
32 ## the initial search for the two slashes).
33 ##
34 set idx(next) [expr {$idx(next) + $idx(first+1)}]
35 ##
36 ## NOTE: Back up one character from the next slash.
37 ##
38 set idx(next-1) [expr {$idx(next) - 1}]
39 ##
40 ## NOTE: Extract the URI scheme and host from the base URL.
41 ##
42 set scheme [string range $baseurl 0 $idx(first)]
43 set host [string range $baseurl $idx(first+1) $idx(next-1)]
44 ##
45 ## NOTE: Try to stay in SSL mode if we are there now.
46 ##
47 if {[string compare $scheme http:/] == 0} {
48 set scheme http://
49 } else {
50 set scheme https://
51 }
52 set logourl $scheme$host/
53 } else {
54 set logourl $baseurl
55 }
56 } else {
57 set logourl $baseurl
58 }
59 return $logourl
60 }
61 set logourl [getLogoUrl $baseurl]
62 </th1>
63 <a href="$logourl">
64 <img src="$logo_image_url" border="0" alt="$project_name">
65 </a>
66 </div>
67 <div class="title">$<title></div>
68 <div class="status"><nobr><th1>
69 if {[info exists login]} {
70 puts "Logged in as $login"
71 } else {
72 puts "Not logged in"
73 }
74 </th1></nobr><small><div id="clock"></div></small></div>
75 </div>
76 <th1>html "<script nonce='$nonce'>"</th1>
77 function updateClock(){
78 var e = document.getElementById("clock");
79 if(e){
80 var d = new Date();
81 function f(n) {
82 return n < 10 ? '0' + n : n;
83 }
84 e.innerHTML = d.getUTCFullYear()+ '-' +
85 f(d.getUTCMonth() + 1) + '-' +
86 f(d.getUTCDate()) + ' ' +
87 f(d.getUTCHours()) + ':' +
88 f(d.getUTCMinutes());
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu"><th1>
95 set sitemap 0
96 foreach {name url expr class} $mainmenu {
97 if {![capexpr $expr]} continue
98 if {[string match /* $url]} {set url $home$url}
99 html "<a href='$url' class='$class'>$name</a>\n"
100 if {[string match */sitemap $url]} {set sitemap 1}
101 }
102 if {!$sitemap} {
103 html "<a href='$home/sitemap'>...</a>"
 
 
 
104 }
105 </th1></div>
106
--- skins/plain_gray/css.txt
+++ skins/plain_gray/css.txt
@@ -7,23 +7,10 @@
77
-moz-text-size-adjust: none;
88
-webkit-text-size-adjust: none;
99
-mx-text-size-adjust: none;
1010
}
1111
12
-/* The project logo in the upper left-hand corner of each page */
13
-div.logo {
14
- display: table-row;
15
- text-align: center;
16
- /* vertical-align: bottom;*/
17
- font-size: 2em;
18
- font-weight: bold;
19
- background-color: #707070;
20
- color: #ffffff;
21
- min-width: 200px;
22
- white-space: nowrap;
23
-}
24
-
2512
/* The page title centered at the top of each page */
2613
div.title {
2714
display: table-cell;
2815
font-size: 1.5em;
2916
font-weight: bold;
@@ -38,13 +25,11 @@
3825
div.status {
3926
display: table-cell;
4027
text-align: right;
4128
vertical-align: bottom;
4229
color: #404040;
43
- font-size: 0.8em;
4430
font-weight: bold;
45
- min-width: 200px;
4631
white-space: nowrap;
4732
}
4833
4934
/* The header across the top of the page */
5035
div.header {
@@ -60,32 +45,55 @@
6045
font-weight: bold;
6146
text-align: center;
6247
letter-spacing: 1px;
6348
background-color: #404040;
6449
color: white;
50
+ z-index: 21; /* just above hbdrop */
51
+}
52
+.hbdrop {
53
+ background-color: white;
54
+ border: 1px solid black;
55
+ border-radius: 0.5em;
56
+ display: none;
57
+ width: 95%;
58
+ position: absolute;
59
+ z-index: 20; /* just below mainmenu, but above timeline bubbles */
6560
}
61
+div.hbdrop a { color: #604000; }
62
+div.hbdrop a:link { color: #604000;}
63
+div.hbdrop a:visited { color: #600000; }
64
+
6665
6766
/* The submenu bar that *sometimes* appears below the main menu */
6867
div.submenu, div.sectionmenu {
6968
padding: 3px 10px 3px 0px;
7069
font-size: 0.9em;
7170
text-align: center;
7271
background-color: #606060;
7372
color: white;
7473
}
75
-div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited,
76
-div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited,
74
+div.mainmenu a,
75
+div.mainmenu a:visited,
76
+div.submenu a,
77
+div.submenu a:visited,
78
+div.sectionmenu>a.button:link,
79
+div.sectionmenu>a.button:visited,
7780
div.submenu label {
7881
padding: 3px 10px 3px 10px;
7982
color: white;
8083
text-decoration: none;
8184
}
82
-div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover,
85
+div.mainmenu a:hover,
86
+div.submenu a:hover,
87
+div.sectionmenu>a.button:hover,
8388
div.submenu label:hover {
8489
color: #404040;
8590
background-color: white;
8691
}
92
+a, a:visited {
93
+ text-decoration: none;
94
+}
8795
8896
/* All page content from the bottom of the menu or submenu down to
8997
** the footer */
9098
div.content {
9199
padding: 0ex 0ex 0ex 0ex;
92100
--- skins/plain_gray/css.txt
+++ skins/plain_gray/css.txt
@@ -7,23 +7,10 @@
7 -moz-text-size-adjust: none;
8 -webkit-text-size-adjust: none;
9 -mx-text-size-adjust: none;
10 }
11
12 /* The project logo in the upper left-hand corner of each page */
13 div.logo {
14 display: table-row;
15 text-align: center;
16 /* vertical-align: bottom;*/
17 font-size: 2em;
18 font-weight: bold;
19 background-color: #707070;
20 color: #ffffff;
21 min-width: 200px;
22 white-space: nowrap;
23 }
24
25 /* The page title centered at the top of each page */
26 div.title {
27 display: table-cell;
28 font-size: 1.5em;
29 font-weight: bold;
@@ -38,13 +25,11 @@
38 div.status {
39 display: table-cell;
40 text-align: right;
41 vertical-align: bottom;
42 color: #404040;
43 font-size: 0.8em;
44 font-weight: bold;
45 min-width: 200px;
46 white-space: nowrap;
47 }
48
49 /* The header across the top of the page */
50 div.header {
@@ -60,32 +45,55 @@
60 font-weight: bold;
61 text-align: center;
62 letter-spacing: 1px;
63 background-color: #404040;
64 color: white;
 
 
 
 
 
 
 
 
 
 
65 }
 
 
 
 
66
67 /* The submenu bar that *sometimes* appears below the main menu */
68 div.submenu, div.sectionmenu {
69 padding: 3px 10px 3px 0px;
70 font-size: 0.9em;
71 text-align: center;
72 background-color: #606060;
73 color: white;
74 }
75 div.mainmenu a, div.mainmenu a:visited, div.submenu a, div.submenu a:visited,
76 div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited,
 
 
 
 
77 div.submenu label {
78 padding: 3px 10px 3px 10px;
79 color: white;
80 text-decoration: none;
81 }
82 div.mainmenu a:hover, div.submenu a:hover, div.sectionmenu>a.button:hover,
 
 
83 div.submenu label:hover {
84 color: #404040;
85 background-color: white;
86 }
 
 
 
87
88 /* All page content from the bottom of the menu or submenu down to
89 ** the footer */
90 div.content {
91 padding: 0ex 0ex 0ex 0ex;
92
--- skins/plain_gray/css.txt
+++ skins/plain_gray/css.txt
@@ -7,23 +7,10 @@
7 -moz-text-size-adjust: none;
8 -webkit-text-size-adjust: none;
9 -mx-text-size-adjust: none;
10 }
11
 
 
 
 
 
 
 
 
 
 
 
 
 
12 /* The page title centered at the top of each page */
13 div.title {
14 display: table-cell;
15 font-size: 1.5em;
16 font-weight: bold;
@@ -38,13 +25,11 @@
25 div.status {
26 display: table-cell;
27 text-align: right;
28 vertical-align: bottom;
29 color: #404040;
 
30 font-weight: bold;
 
31 white-space: nowrap;
32 }
33
34 /* The header across the top of the page */
35 div.header {
@@ -60,32 +45,55 @@
45 font-weight: bold;
46 text-align: center;
47 letter-spacing: 1px;
48 background-color: #404040;
49 color: white;
50 z-index: 21; /* just above hbdrop */
51 }
52 .hbdrop {
53 background-color: white;
54 border: 1px solid black;
55 border-radius: 0.5em;
56 display: none;
57 width: 95%;
58 position: absolute;
59 z-index: 20; /* just below mainmenu, but above timeline bubbles */
60 }
61 div.hbdrop a { color: #604000; }
62 div.hbdrop a:link { color: #604000;}
63 div.hbdrop a:visited { color: #600000; }
64
65
66 /* The submenu bar that *sometimes* appears below the main menu */
67 div.submenu, div.sectionmenu {
68 padding: 3px 10px 3px 0px;
69 font-size: 0.9em;
70 text-align: center;
71 background-color: #606060;
72 color: white;
73 }
74 div.mainmenu a,
75 div.mainmenu a:visited,
76 div.submenu a,
77 div.submenu a:visited,
78 div.sectionmenu>a.button:link,
79 div.sectionmenu>a.button:visited,
80 div.submenu label {
81 padding: 3px 10px 3px 10px;
82 color: white;
83 text-decoration: none;
84 }
85 div.mainmenu a:hover,
86 div.submenu a:hover,
87 div.sectionmenu>a.button:hover,
88 div.submenu label:hover {
89 color: #404040;
90 background-color: white;
91 }
92 a, a:visited {
93 text-decoration: none;
94 }
95
96 /* All page content from the bottom of the menu or submenu down to
97 ** the footer */
98 div.content {
99 padding: 0ex 0ex 0ex 0ex;
100
--- skins/plain_gray/header.txt
+++ skins/plain_gray/header.txt
@@ -1,43 +1,14 @@
11
<div class="header">
2
- <div class="title"><small>$<project_name></small><br />$<title></div>
3
- <div class="status"><th1>
4
- if {[info exists login]} {
5
- puts "Logged in as $login"
6
- } else {
7
- puts "Not logged in"
8
- }
9
- </th1></div>
2
+ <div class="title">$<project_name>: $<title></div>
103
</div>
114
<div class="mainmenu">
125
<th1>
13
-html "<a href='$home$index_page'>Home</a>\n"
14
-if {[anycap jor]} {
15
- html "<a href='$home/timeline'>Timeline</a>\n"
16
-}
17
-if {[anoncap oh]} {
18
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
19
-}
20
-if {[anoncap o]} {
21
- html "<a href='$home/brlist'>Branches</a>\n"
22
- html "<a href='$home/taglist'>Tags</a>\n"
23
-}
24
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
25
- html "<a href='$home/forum'>Forum</a>\n"
26
-}
27
-if {[anoncap r]} {
28
- html "<a href='$home/ticket'>Tickets</a>\n"
29
-}
30
-if {[anoncap j]} {
31
- html "<a href='$home/wiki'>Wiki</a>\n"
32
-}
33
-if {[hascap s]} {
34
- html "<a href='$home/setup'>Admin</a>\n"
35
-} elseif {[hascap a]} {
36
- html "<a href='$home/setup_ulist'>Users</a>\n"
37
-}
38
-if {[info exists login]} {
39
- html "<a href='$home/login'>Logout</a>\n"
40
-} else {
41
- html "<a href='$home/login'>Login</a>\n"
6
+html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
7
+builtin_request_js hbmenu.js
8
+foreach {name url expr class} $mainmenu {
9
+ if {![capexpr $expr]} continue
10
+ if {[string match /* $url]} {set url $home$url}
11
+ html "<a href='$url' class='$class'>$name</a>\n"
4212
}
4313
</th1></div>
14
+<div id='hbdrop' class='hbdrop'></div>
4415
4516
DELETED skins/rounded1/css.txt
4617
DELETED skins/rounded1/details.txt
4718
DELETED skins/rounded1/footer.txt
4819
DELETED skins/rounded1/header.txt
--- skins/plain_gray/header.txt
+++ skins/plain_gray/header.txt
@@ -1,43 +1,14 @@
1 <div class="header">
2 <div class="title"><small>$<project_name></small><br />$<title></div>
3 <div class="status"><th1>
4 if {[info exists login]} {
5 puts "Logged in as $login"
6 } else {
7 puts "Not logged in"
8 }
9 </th1></div>
10 </div>
11 <div class="mainmenu">
12 <th1>
13 html "<a href='$home$index_page'>Home</a>\n"
14 if {[anycap jor]} {
15 html "<a href='$home/timeline'>Timeline</a>\n"
16 }
17 if {[anoncap oh]} {
18 html "<a href='$home/tree?ci=tip'>Files</a>\n"
19 }
20 if {[anoncap o]} {
21 html "<a href='$home/brlist'>Branches</a>\n"
22 html "<a href='$home/taglist'>Tags</a>\n"
23 }
24 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
25 html "<a href='$home/forum'>Forum</a>\n"
26 }
27 if {[anoncap r]} {
28 html "<a href='$home/ticket'>Tickets</a>\n"
29 }
30 if {[anoncap j]} {
31 html "<a href='$home/wiki'>Wiki</a>\n"
32 }
33 if {[hascap s]} {
34 html "<a href='$home/setup'>Admin</a>\n"
35 } elseif {[hascap a]} {
36 html "<a href='$home/setup_ulist'>Users</a>\n"
37 }
38 if {[info exists login]} {
39 html "<a href='$home/login'>Logout</a>\n"
40 } else {
41 html "<a href='$home/login'>Login</a>\n"
42 }
43 </th1></div>
 
44
45 ELETED skins/rounded1/css.txt
46 ELETED skins/rounded1/details.txt
47 ELETED skins/rounded1/footer.txt
48 ELETED skins/rounded1/header.txt
--- skins/plain_gray/header.txt
+++ skins/plain_gray/header.txt
@@ -1,43 +1,14 @@
1 <div class="header">
2 <div class="title">$<project_name>: $<title></div>
 
 
 
 
 
 
 
3 </div>
4 <div class="mainmenu">
5 <th1>
6 html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a>"
7 builtin_request_js hbmenu.js
8 foreach {name url expr class} $mainmenu {
9 if {![capexpr $expr]} continue
10 if {[string match /* $url]} {set url $home$url}
11 html "<a href='$url' class='$class'>$name</a>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12 }
13 </th1></div>
14 <div id='hbdrop' class='hbdrop'></div>
15
16 ELETED skins/rounded1/css.txt
17 ELETED skins/rounded1/details.txt
18 ELETED skins/rounded1/footer.txt
19 ELETED skins/rounded1/header.txt
D skins/rounded1/css.txt
-197
--- a/skins/rounded1/css.txt
+++ b/skins/rounded1/css.txt
@@ -1,197 +0,0 @@
1
-/* General settings for the entire page */
2
-html {
3
- min-height: 100%;
4
-}
5
-body {
6
- margin: 0ex 1ex;
7
- padding: 0px;
8
- background-color: white;
9
- color: #333;
10
- font-family: Verdana, sans-serif;
11
- font-size: 0.8em;
12
- -moz-text-size-adjust: none;
13
- -webkit-text-size-adjust: none;
14
- -mx-text-size-adjust: none;
15
-}
16
-
17
-/* The project logo in the upper left-hand corner of each page */
18
-div.logo {
19
- display: table-cell;
20
- text-align: right;
21
- vertical-align: bottom;
22
- font-weight: normal;
23
- white-space: nowrap;
24
-}
25
-
26
-/* Widths */
27
-div.header, div.mainmenu, div.submenu, div.content, div.footer {
28
- max-width: 900px;
29
- margin: auto;
30
- padding: 3px 20px 3px 20px;
31
- clear: both;
32
-}
33
-
34
-/* The page title at the top of each page */
35
-div.title {
36
- display: table-cell;
37
- padding-left: 10px;
38
- font-size: 2em;
39
- margin: 10px 0 10px -20px;
40
- vertical-align: bottom;
41
- text-align: left;
42
- width: 80%;
43
- font-family: Verdana, sans-serif;
44
- font-weight: bold;
45
- color: #558195;
46
- text-shadow: 0px 2px 2px #999999;
47
-}
48
-
49
-/* The login status message in the top right-hand corner */
50
-div.status {
51
- display: table-cell;
52
- text-align: right;
53
- vertical-align: bottom;
54
- color: #333;
55
- margin-right: -20px;
56
- white-space: nowrap;
57
-}
58
-
59
-/* The main menu bar that appears at the top of the page beneath
60
- ** the header */
61
-div.mainmenu {
62
- text-align: center;
63
- color: white;
64
- border-top-left-radius: 5px;
65
- border-top-right-radius: 5px;
66
- vertical-align: middle;
67
- padding-top: 8px;
68
- padding-bottom: 8px;
69
- background-color: #446979;
70
- box-shadow: 0px 3px 4px #333333;
71
-}
72
-
73
-/* The submenu bar that *sometimes* appears below the main menu */
74
-div.submenu {
75
- padding-top:10px;
76
- padding-bottom:0;
77
- text-align: right;
78
- color: #000;
79
- background-color: #fff;
80
- height: 1.5em;
81
- vertical-align:middle;
82
- box-shadow: 0px 3px 4px #999;
83
-}
84
-div.mainmenu a, div.mainmenu a:visited {
85
- padding: 3px 10px 3px 10px;
86
- color: white;
87
- text-decoration: none;
88
-}
89
-div.submenu a, div.submenu a:visited, a.button, div.submenu label,
90
-div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited {
91
- padding: 2px 8px;
92
- color: #000;
93
- font-family: Arial;
94
- text-decoration: none;
95
- margin:auto;
96
- border-radius: 5px;
97
- background-color: #e0e0e0;
98
- text-shadow: 0px -1px 0px #eee;
99
- border: 1px solid #000;
100
-}
101
-
102
-div.mainmenu a:hover {
103
- color: #000;
104
- background-color: white;
105
-}
106
-
107
-div.submenu a:hover, div.sectionmenu>a.button:hover, div.submenu label:hover {
108
- background-color: #c0c0c0;
109
-}
110
-
111
-/* All page content from the bottom of the menu or submenu down to
112
- ** the footer */
113
-div.content {
114
- background-color: #fff;
115
- box-shadow: 0px 3px 4px #999;
116
- border-bottom-right-radius: 5px;
117
- border-bottom-left-radius: 5px;
118
- padding-bottom: 1em;
119
- min-height:40%;
120
-}
121
-
122
-
123
-/* Some pages have section dividers */
124
-div.section {
125
- margin-bottom: 0.5em;
126
- margin-top: 1em;
127
- margin-right: auto;
128
- padding: 1px 1px 1px 1px;
129
- font-size: 1.2em;
130
- font-weight: bold;
131
- text-align: center;
132
- color: white;
133
- border-radius: 5px;
134
- background-color: #446979;
135
- box-shadow: 0px 3px 4px #333333;
136
- white-space: nowrap;
137
-}
138
-
139
-/* The "Date" that occurs on the left hand side of timelines */
140
-div.divider {
141
- font-size: 1.2em;
142
- font-family: Georgia, serif;
143
- font-weight: bold;
144
- margin-top: 1em;
145
- white-space: nowrap;
146
-}
147
-
148
-/* The footer at the very bottom of the page */
149
-div.footer {
150
- font-size: 0.9em;
151
- text-align: right;
152
- margin-bottom: 1em;
153
- color: #666;
154
-}
155
-
156
-/* Hyperlink colors in the footer */
157
-div.footer a { color: white; }
158
-div.footer a:link { color: white; }
159
-div.footer a:visited { color: white; }
160
-div.footer a:hover { background-color: white; color: #558195; }
161
-
162
-/* <verbatim> blocks */
163
-pre.verbatim, blockquote pre {
164
- font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace;
165
- background-color: #f3f3f3;
166
- padding: 0.5em;
167
- white-space: pre-wrap;
168
-}
169
-
170
-blockquote pre {
171
- border: 1px #000 dashed;
172
-}
173
-
174
-/* The label/value pairs on (for example) the ci page */
175
-table.label-value th {
176
- vertical-align: top;
177
- text-align: right;
178
- padding: 0.2ex 2ex;
179
-}
180
-
181
-table.report tr th {
182
- padding: 3px 5px;
183
- text-transform: capitalize;
184
- cursor: pointer;
185
-}
186
-
187
-table.report tr td {
188
- padding: 3px 5px;
189
-}
190
-
191
-textarea {
192
- font-size: 1em;
193
-}
194
-
195
-.fullsize-text {
196
- font-size: 1.25em;
197
-}
--- a/skins/rounded1/css.txt
+++ b/skins/rounded1/css.txt
@@ -1,197 +0,0 @@
1 /* General settings for the entire page */
2 html {
3 min-height: 100%;
4 }
5 body {
6 margin: 0ex 1ex;
7 padding: 0px;
8 background-color: white;
9 color: #333;
10 font-family: Verdana, sans-serif;
11 font-size: 0.8em;
12 -moz-text-size-adjust: none;
13 -webkit-text-size-adjust: none;
14 -mx-text-size-adjust: none;
15 }
16
17 /* The project logo in the upper left-hand corner of each page */
18 div.logo {
19 display: table-cell;
20 text-align: right;
21 vertical-align: bottom;
22 font-weight: normal;
23 white-space: nowrap;
24 }
25
26 /* Widths */
27 div.header, div.mainmenu, div.submenu, div.content, div.footer {
28 max-width: 900px;
29 margin: auto;
30 padding: 3px 20px 3px 20px;
31 clear: both;
32 }
33
34 /* The page title at the top of each page */
35 div.title {
36 display: table-cell;
37 padding-left: 10px;
38 font-size: 2em;
39 margin: 10px 0 10px -20px;
40 vertical-align: bottom;
41 text-align: left;
42 width: 80%;
43 font-family: Verdana, sans-serif;
44 font-weight: bold;
45 color: #558195;
46 text-shadow: 0px 2px 2px #999999;
47 }
48
49 /* The login status message in the top right-hand corner */
50 div.status {
51 display: table-cell;
52 text-align: right;
53 vertical-align: bottom;
54 color: #333;
55 margin-right: -20px;
56 white-space: nowrap;
57 }
58
59 /* The main menu bar that appears at the top of the page beneath
60 ** the header */
61 div.mainmenu {
62 text-align: center;
63 color: white;
64 border-top-left-radius: 5px;
65 border-top-right-radius: 5px;
66 vertical-align: middle;
67 padding-top: 8px;
68 padding-bottom: 8px;
69 background-color: #446979;
70 box-shadow: 0px 3px 4px #333333;
71 }
72
73 /* The submenu bar that *sometimes* appears below the main menu */
74 div.submenu {
75 padding-top:10px;
76 padding-bottom:0;
77 text-align: right;
78 color: #000;
79 background-color: #fff;
80 height: 1.5em;
81 vertical-align:middle;
82 box-shadow: 0px 3px 4px #999;
83 }
84 div.mainmenu a, div.mainmenu a:visited {
85 padding: 3px 10px 3px 10px;
86 color: white;
87 text-decoration: none;
88 }
89 div.submenu a, div.submenu a:visited, a.button, div.submenu label,
90 div.sectionmenu>a.button:link, div.sectionmenu>a.button:visited {
91 padding: 2px 8px;
92 color: #000;
93 font-family: Arial;
94 text-decoration: none;
95 margin:auto;
96 border-radius: 5px;
97 background-color: #e0e0e0;
98 text-shadow: 0px -1px 0px #eee;
99 border: 1px solid #000;
100 }
101
102 div.mainmenu a:hover {
103 color: #000;
104 background-color: white;
105 }
106
107 div.submenu a:hover, div.sectionmenu>a.button:hover, div.submenu label:hover {
108 background-color: #c0c0c0;
109 }
110
111 /* All page content from the bottom of the menu or submenu down to
112 ** the footer */
113 div.content {
114 background-color: #fff;
115 box-shadow: 0px 3px 4px #999;
116 border-bottom-right-radius: 5px;
117 border-bottom-left-radius: 5px;
118 padding-bottom: 1em;
119 min-height:40%;
120 }
121
122
123 /* Some pages have section dividers */
124 div.section {
125 margin-bottom: 0.5em;
126 margin-top: 1em;
127 margin-right: auto;
128 padding: 1px 1px 1px 1px;
129 font-size: 1.2em;
130 font-weight: bold;
131 text-align: center;
132 color: white;
133 border-radius: 5px;
134 background-color: #446979;
135 box-shadow: 0px 3px 4px #333333;
136 white-space: nowrap;
137 }
138
139 /* The "Date" that occurs on the left hand side of timelines */
140 div.divider {
141 font-size: 1.2em;
142 font-family: Georgia, serif;
143 font-weight: bold;
144 margin-top: 1em;
145 white-space: nowrap;
146 }
147
148 /* The footer at the very bottom of the page */
149 div.footer {
150 font-size: 0.9em;
151 text-align: right;
152 margin-bottom: 1em;
153 color: #666;
154 }
155
156 /* Hyperlink colors in the footer */
157 div.footer a { color: white; }
158 div.footer a:link { color: white; }
159 div.footer a:visited { color: white; }
160 div.footer a:hover { background-color: white; color: #558195; }
161
162 /* <verbatim> blocks */
163 pre.verbatim, blockquote pre {
164 font-family: Dejavu Sans Mono, Monaco, Lucida Console, monospace;
165 background-color: #f3f3f3;
166 padding: 0.5em;
167 white-space: pre-wrap;
168 }
169
170 blockquote pre {
171 border: 1px #000 dashed;
172 }
173
174 /* The label/value pairs on (for example) the ci page */
175 table.label-value th {
176 vertical-align: top;
177 text-align: right;
178 padding: 0.2ex 2ex;
179 }
180
181 table.report tr th {
182 padding: 3px 5px;
183 text-transform: capitalize;
184 cursor: pointer;
185 }
186
187 table.report tr td {
188 padding: 3px 5px;
189 }
190
191 textarea {
192 font-size: 1em;
193 }
194
195 .fullsize-text {
196 font-size: 1.25em;
197 }
--- a/skins/rounded1/css.txt
+++ b/skins/rounded1/css.txt
@@ -1,197 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
D skins/rounded1/details.txt
-3
--- a/skins/rounded1/details.txt
+++ b/skins/rounded1/details.txt
@@ -1,3 +0,0 @@
1
-timeline-arrowheads: 1
2
-t1
3
-timeline-color-graph-lines: 0
--- a/skins/rounded1/details.txt
+++ b/skins/rounded1/details.txt
@@ -1,3 +0,0 @@
1 timeline-arrowheads: 1
2 t1
3 timeline-color-graph-lines: 0
--- a/skins/rounded1/details.txt
+++ b/skins/rounded1/details.txt
@@ -1,3 +0,0 @@
 
 
 
D skins/rounded1/footer.txt
-1
--- a/skins/rounded1/footer.txt
+++ b/skins/rounded1/footer.txt
@@ -1 +0,0 @@
1
-<
--- a/skins/rounded1/footer.txt
+++ b/skins/rounded1/footer.txt
@@ -1 +0,0 @@
1 <
--- a/skins/rounded1/footer.txt
+++ b/skins/rounded1/footer.txt
@@ -1 +0,0 @@
 
D skins/rounded1/header.txt
-44
--- a/skins/rounded1/header.txt
+++ b/skins/rounded1/header.txt
@@ -1,44 +0,0 @@
1
-<div class="header">
2
- <div class="logo">
3
- <img src="$logo_image_url" alt="logo">
4
- <br />$<project_name>
5
- </div>
6
- <div class="title">$<title></div>
7
- <div class="status"><th1>
8
- if {[info exists login]} {
9
- puts "Logged in as $login"
10
- } else {
11
- puts "Not logged in"
12
- }
13
- </th1></div>
14
-</div>
15
-<div class="mainmenu">
16
-<th1>
17
-html "<a href='$home$index_page'>Home</a>\n"
18
-if {[anycap jor]} {
19
- html "<a href='$home/} {
20
- html "<a href='$home/timeline'>Timeline</a>\n"
21
-}
22
-if {[anoncap oh]} {
23
- html "<a href='$home/tree?ci=tip'>Files</a>\n"
24
-}
25
-if {[anoncap o]} {
26
- html "<a href='$home/brlist'>Branches</a>\n"
27
- html "<a href='$home/taglist'>Tags</a>\n"
28
-}
29
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
30
- html "<a href='$home/fooncap r</a>\n"
31
-} elseif {[hascap a]ticket'>Tickets</a>\n"
32
-}
33
-if {[anoncap j]} {
34
- html "<a href='$home/wiki'>Wiki</a>\n"
35
-}
36
-if {[hascap s]} {
37
- html "<a href='$home/setup'>Admin</a>\n"
38
-} elseif {[hascap a]} {
39
- html "<a href='$home/setup_ulist'>Users</a>\n"
40
-}
41
- class="status"><th1>
42
- ifhtml "<a href='$home/login'>Logout</a>\n"
43
-} else {
44
- html "<a href='$home/login'>L
--- a/skins/rounded1/header.txt
+++ b/skins/rounded1/header.txt
@@ -1,44 +0,0 @@
1 <div class="header">
2 <div class="logo">
3 <img src="$logo_image_url" alt="logo">
4 <br />$<project_name>
5 </div>
6 <div class="title">$<title></div>
7 <div class="status"><th1>
8 if {[info exists login]} {
9 puts "Logged in as $login"
10 } else {
11 puts "Not logged in"
12 }
13 </th1></div>
14 </div>
15 <div class="mainmenu">
16 <th1>
17 html "<a href='$home$index_page'>Home</a>\n"
18 if {[anycap jor]} {
19 html "<a href='$home/} {
20 html "<a href='$home/timeline'>Timeline</a>\n"
21 }
22 if {[anoncap oh]} {
23 html "<a href='$home/tree?ci=tip'>Files</a>\n"
24 }
25 if {[anoncap o]} {
26 html "<a href='$home/brlist'>Branches</a>\n"
27 html "<a href='$home/taglist'>Tags</a>\n"
28 }
29 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
30 html "<a href='$home/fooncap r</a>\n"
31 } elseif {[hascap a]ticket'>Tickets</a>\n"
32 }
33 if {[anoncap j]} {
34 html "<a href='$home/wiki'>Wiki</a>\n"
35 }
36 if {[hascap s]} {
37 html "<a href='$home/setup'>Admin</a>\n"
38 } elseif {[hascap a]} {
39 html "<a href='$home/setup_ulist'>Users</a>\n"
40 }
41 class="status"><th1>
42 ifhtml "<a href='$home/login'>Logout</a>\n"
43 } else {
44 html "<a href='$home/login'>L
--- a/skins/rounded1/header.txt
+++ b/skins/rounded1/header.txt
@@ -1,44 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- skins/xekri/header.txt
+++ skins/xekri/header.txt
@@ -89,48 +89,22 @@
8989
setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
9090
}
9191
}
9292
updateClock();
9393
</script>
94
-<div class="mainmenu">
95
-<th1>
96
-proc menulink {url name} {
97
- upvar current_page current
98
- upvar home home
99
- if {[string range $url 0 [string length $current]] eq "/$current"} {
100
- html "<a href='$home$url' class='active'>$name</a>\n"
101
- } else {
102
- html "<a href='$home$url'>$name</a>\n"
103
- }
104
-}
105
-menulink $index_page Home
106
-if {[anycap jor]} {
107
- menulink /timeline Timeline
108
-}
109
-if {[anoncap oh]} {
110
- menulink /dir?ci=tip Files
111
-}
112
-if {[anoncap o]} {
113
- menulink /brlist Branches
114
- menulink /taglist Tags
115
-}
116
-if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
117
- menulink /forum Forum
118
-}
119
-if {[anoncap r]} {
120
- menulink /ticket Tickets
121
-}
122
-if {[anoncap j]} {
123
- menulink /wiki Wiki
124
-}
125
- menulink /sitemap More...
126
-if {[hascap s]} {
127
- menulink /setup Admin
128
-} elseif {[hascap a]} {
129
- menulink /setup_ulist Users
130
-}
131
-if {[info exists login]} {
132
- menulink /login Logout
133
-} else {
134
- menulink /login Login
94
+<div class="mainmenu"><th1>
95
+set sitemap 0
96
+foreach {name url expr class} $mainmenu {
97
+ if {![capexpr $expr]} continue
98
+ if {[string match /* $url]} {
99
+ if {[string match /$current_page* $url]} {
100
+ lappend class active
101
+ }
102
+ set url $home$url
103
+ }
104
+ html "<a href='$url' class='$class'>$name</a>\n"
105
+ if {[string match */sitemap $url]} {set sitemap 1}
106
+}
107
+if {!$sitemap} {
108
+ html "<a href='$home/sitemap'>...</a>\n"
135109
}
136110
</th1></div>
137111
--- skins/xekri/header.txt
+++ skins/xekri/header.txt
@@ -89,48 +89,22 @@
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu">
95 <th1>
96 proc menulink {url name} {
97 upvar current_page current
98 upvar home home
99 if {[string range $url 0 [string length $current]] eq "/$current"} {
100 html "<a href='$home$url' class='active'>$name</a>\n"
101 } else {
102 html "<a href='$home$url'>$name</a>\n"
103 }
104 }
105 menulink $index_page Home
106 if {[anycap jor]} {
107 menulink /timeline Timeline
108 }
109 if {[anoncap oh]} {
110 menulink /dir?ci=tip Files
111 }
112 if {[anoncap o]} {
113 menulink /brlist Branches
114 menulink /taglist Tags
115 }
116 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
117 menulink /forum Forum
118 }
119 if {[anoncap r]} {
120 menulink /ticket Tickets
121 }
122 if {[anoncap j]} {
123 menulink /wiki Wiki
124 }
125 menulink /sitemap More...
126 if {[hascap s]} {
127 menulink /setup Admin
128 } elseif {[hascap a]} {
129 menulink /setup_ulist Users
130 }
131 if {[info exists login]} {
132 menulink /login Logout
133 } else {
134 menulink /login Login
135 }
136 </th1></div>
137
--- skins/xekri/header.txt
+++ skins/xekri/header.txt
@@ -89,48 +89,22 @@
89 setTimeout(updateClock,(60-d.getUTCSeconds())*1000);
90 }
91 }
92 updateClock();
93 </script>
94 <div class="mainmenu"><th1>
95 set sitemap 0
96 foreach {name url expr class} $mainmenu {
97 if {![capexpr $expr]} continue
98 if {[string match /* $url]} {
99 if {[string match /$current_page* $url]} {
100 lappend class active
101 }
102 set url $home$url
103 }
104 html "<a href='$url' class='$class'>$name</a>\n"
105 if {[string match */sitemap $url]} {set sitemap 1}
106 }
107 if {!$sitemap} {
108 html "<a href='$home/sitemap'>...</a>\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109 }
110 </th1></div>
111
+2 -2
--- src/add.c
+++ src/add.c
@@ -559,11 +559,11 @@
559559
** --reset Reset the DELETED state of a checkout, such
560560
** that all newly-rm'd (but not yet committed)
561561
** files are no longer removed. No flags other
562562
** than --verbose or --dry-run may be used with
563563
** --reset.
564
-** --verbose|-v Outputs information about each --reset file.
564
+** -v|--verbose Outputs information about each --reset file.
565565
** Only usable with --reset.
566566
**
567567
** See also: [[addremove]], [[add]]
568568
*/
569569
void delete_cmd(void){
@@ -751,11 +751,11 @@
751751
** such that all newly-added (but not yet committed)
752752
** files are no longer added and all newly-removed
753753
** (but not yet committed) files are no longer
754754
** removed. No flags other than --verbose and
755755
** --dry-run may be used with --reset.
756
-** --verbose|-v Outputs information about each --reset file.
756
+** -v|--verbose Outputs information about each --reset file.
757757
** Only usable with --reset.
758758
**
759759
** See also: [[add]], [[rm]]
760760
*/
761761
void addremove_cmd(void){
762762
--- src/add.c
+++ src/add.c
@@ -559,11 +559,11 @@
559 ** --reset Reset the DELETED state of a checkout, such
560 ** that all newly-rm'd (but not yet committed)
561 ** files are no longer removed. No flags other
562 ** than --verbose or --dry-run may be used with
563 ** --reset.
564 ** --verbose|-v Outputs information about each --reset file.
565 ** Only usable with --reset.
566 **
567 ** See also: [[addremove]], [[add]]
568 */
569 void delete_cmd(void){
@@ -751,11 +751,11 @@
751 ** such that all newly-added (but not yet committed)
752 ** files are no longer added and all newly-removed
753 ** (but not yet committed) files are no longer
754 ** removed. No flags other than --verbose and
755 ** --dry-run may be used with --reset.
756 ** --verbose|-v Outputs information about each --reset file.
757 ** Only usable with --reset.
758 **
759 ** See also: [[add]], [[rm]]
760 */
761 void addremove_cmd(void){
762
--- src/add.c
+++ src/add.c
@@ -559,11 +559,11 @@
559 ** --reset Reset the DELETED state of a checkout, such
560 ** that all newly-rm'd (but not yet committed)
561 ** files are no longer removed. No flags other
562 ** than --verbose or --dry-run may be used with
563 ** --reset.
564 ** -v|--verbose Outputs information about each --reset file.
565 ** Only usable with --reset.
566 **
567 ** See also: [[addremove]], [[add]]
568 */
569 void delete_cmd(void){
@@ -751,11 +751,11 @@
751 ** such that all newly-added (but not yet committed)
752 ** files are no longer added and all newly-removed
753 ** (but not yet committed) files are no longer
754 ** removed. No flags other than --verbose and
755 ** --dry-run may be used with --reset.
756 ** -v|--verbose Outputs information about each --reset file.
757 ** Only usable with --reset.
758 **
759 ** See also: [[add]], [[rm]]
760 */
761 void addremove_cmd(void){
762
+15 -10
--- src/alerts.c
+++ src/alerts.c
@@ -288,11 +288,11 @@
288288
@ recepient addresses, and subject from the header of the piped email
289289
@ text. (Property: "email-send-command")</p>
290290
291291
entry_attribute("Store Emails In This Database", 60, "email-send-db",
292292
"esdb", "", 0);
293
- @ <p>When the send method is "store in a databaes", each email message is
293
+ @ <p>When the send method is "store in a database", each email message is
294294
@ stored in an SQLite database file with the name given here.
295295
@ (Property: "email-send-db")</p>
296296
297297
entry_attribute("Store Emails In This Directory", 60, "email-send-dir",
298298
"esdir", "", 0);
@@ -1377,11 +1377,10 @@
13771377
&& subscribe_error_check(&eErr,&zErr,needCaptcha)
13781378
){
13791379
/* A validated request for a new subscription has been received. */
13801380
char ssub[20];
13811381
const char *zEAddr = P("e");
1382
- sqlite3_int64 id; /* New subscriber Id */
13831382
const char *zCode; /* New subscriber code (in hex) */
13841383
int nsub = 0;
13851384
const char *suname = PT("suname");
13861385
if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin;
13871386
if( suname && suname[0]==0 ) suname = 0;
@@ -1390,25 +1389,22 @@
13901389
if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f';
13911390
if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't';
13921391
if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w';
13931392
if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x';
13941393
ssub[nsub] = 0;
1395
- db_multi_exec(
1394
+ zCode = db_text(0,
13961395
"INSERT INTO subscriber(semail,suname,"
13971396
" sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)"
1398
- "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)",
1397
+ "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)"
1398
+ "RETURNING hex(subscriberCode);",
13991399
/* semail */ zEAddr,
14001400
/* suname */ suname,
14011401
/* sverified */ needCaptcha==0,
14021402
/* sdigest */ PB("di"),
14031403
/* ssub */ ssub,
14041404
/* smip */ g.zIpAddr
14051405
);
1406
- id = db_last_insert_rowid();
1407
- zCode = db_text(0,
1408
- "SELECT hex(subscriberCode) FROM subscriber WHERE subscriberId=%lld",
1409
- id);
14101406
if( !needCaptcha ){
14111407
/* The new subscription has been added on behalf of a logged-in user.
14121408
** No verification is required. Jump immediately to /alerts page.
14131409
*/
14141410
if( g.perm.Admin ){
@@ -2278,10 +2274,11 @@
22782274
memset(&anchor, 0, sizeof(anchor));
22792275
pLast = &anchor;
22802276
*pnEvent = 0;
22812277
while( db_step(&q)==SQLITE_ROW ){
22822278
const char *zType = "";
2279
+ const char *zComment = db_column_text(&q, 2);
22832280
p = fossil_malloc( sizeof(EmailEvent) );
22842281
pLast->pNext = p;
22852282
pLast = p;
22862283
p->type = db_column_text(&q, 3)[0];
22872284
p->needMod = db_column_int(&q, 4);
@@ -2289,18 +2286,26 @@
22892286
p->pNext = 0;
22902287
switch( p->type ){
22912288
case 'c': zType = "Check-In"; break;
22922289
/* case 'f': -- forum posts omitted from this loop. See below */
22932290
case 't': zType = "Ticket Change"; break;
2294
- case 'w': zType = "Wiki Edit"; break;
2291
+ case 'w': {
2292
+ zType = "Wiki Edit";
2293
+ switch( zComment ? *zComment : 0 ){
2294
+ case ':': ++zComment; break;
2295
+ case '+': zType = "Wiki Added"; ++zComment; break;
2296
+ case '-': zType = "Wiki Removed"; ++zComment; break;
2297
+ }
2298
+ break;
2299
+ }
22952300
}
22962301
blob_init(&p->hdr, 0, 0);
22972302
blob_init(&p->txt, 0, 0);
22982303
blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n",
22992304
db_column_text(&q,1),
23002305
zType,
2301
- db_column_text(&q, 2),
2306
+ zComment,
23022307
zUrl,
23032308
db_column_text(&q,0)
23042309
);
23052310
if( p->needMod ){
23062311
blob_appendf(&p->txt,
23072312
--- src/alerts.c
+++ src/alerts.c
@@ -288,11 +288,11 @@
288 @ recepient addresses, and subject from the header of the piped email
289 @ text. (Property: "email-send-command")</p>
290
291 entry_attribute("Store Emails In This Database", 60, "email-send-db",
292 "esdb", "", 0);
293 @ <p>When the send method is "store in a databaes", each email message is
294 @ stored in an SQLite database file with the name given here.
295 @ (Property: "email-send-db")</p>
296
297 entry_attribute("Store Emails In This Directory", 60, "email-send-dir",
298 "esdir", "", 0);
@@ -1377,11 +1377,10 @@
1377 && subscribe_error_check(&eErr,&zErr,needCaptcha)
1378 ){
1379 /* A validated request for a new subscription has been received. */
1380 char ssub[20];
1381 const char *zEAddr = P("e");
1382 sqlite3_int64 id; /* New subscriber Id */
1383 const char *zCode; /* New subscriber code (in hex) */
1384 int nsub = 0;
1385 const char *suname = PT("suname");
1386 if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin;
1387 if( suname && suname[0]==0 ) suname = 0;
@@ -1390,25 +1389,22 @@
1390 if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f';
1391 if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't';
1392 if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w';
1393 if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x';
1394 ssub[nsub] = 0;
1395 db_multi_exec(
1396 "INSERT INTO subscriber(semail,suname,"
1397 " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)"
1398 "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)",
 
1399 /* semail */ zEAddr,
1400 /* suname */ suname,
1401 /* sverified */ needCaptcha==0,
1402 /* sdigest */ PB("di"),
1403 /* ssub */ ssub,
1404 /* smip */ g.zIpAddr
1405 );
1406 id = db_last_insert_rowid();
1407 zCode = db_text(0,
1408 "SELECT hex(subscriberCode) FROM subscriber WHERE subscriberId=%lld",
1409 id);
1410 if( !needCaptcha ){
1411 /* The new subscription has been added on behalf of a logged-in user.
1412 ** No verification is required. Jump immediately to /alerts page.
1413 */
1414 if( g.perm.Admin ){
@@ -2278,10 +2274,11 @@
2278 memset(&anchor, 0, sizeof(anchor));
2279 pLast = &anchor;
2280 *pnEvent = 0;
2281 while( db_step(&q)==SQLITE_ROW ){
2282 const char *zType = "";
 
2283 p = fossil_malloc( sizeof(EmailEvent) );
2284 pLast->pNext = p;
2285 pLast = p;
2286 p->type = db_column_text(&q, 3)[0];
2287 p->needMod = db_column_int(&q, 4);
@@ -2289,18 +2286,26 @@
2289 p->pNext = 0;
2290 switch( p->type ){
2291 case 'c': zType = "Check-In"; break;
2292 /* case 'f': -- forum posts omitted from this loop. See below */
2293 case 't': zType = "Ticket Change"; break;
2294 case 'w': zType = "Wiki Edit"; break;
 
 
 
 
 
 
 
 
2295 }
2296 blob_init(&p->hdr, 0, 0);
2297 blob_init(&p->txt, 0, 0);
2298 blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n",
2299 db_column_text(&q,1),
2300 zType,
2301 db_column_text(&q, 2),
2302 zUrl,
2303 db_column_text(&q,0)
2304 );
2305 if( p->needMod ){
2306 blob_appendf(&p->txt,
2307
--- src/alerts.c
+++ src/alerts.c
@@ -288,11 +288,11 @@
288 @ recepient addresses, and subject from the header of the piped email
289 @ text. (Property: "email-send-command")</p>
290
291 entry_attribute("Store Emails In This Database", 60, "email-send-db",
292 "esdb", "", 0);
293 @ <p>When the send method is "store in a database", each email message is
294 @ stored in an SQLite database file with the name given here.
295 @ (Property: "email-send-db")</p>
296
297 entry_attribute("Store Emails In This Directory", 60, "email-send-dir",
298 "esdir", "", 0);
@@ -1377,11 +1377,10 @@
1377 && subscribe_error_check(&eErr,&zErr,needCaptcha)
1378 ){
1379 /* A validated request for a new subscription has been received. */
1380 char ssub[20];
1381 const char *zEAddr = P("e");
 
1382 const char *zCode; /* New subscriber code (in hex) */
1383 int nsub = 0;
1384 const char *suname = PT("suname");
1385 if( suname==0 && needCaptcha==0 && !g.perm.Admin ) suname = g.zLogin;
1386 if( suname && suname[0]==0 ) suname = 0;
@@ -1390,25 +1389,22 @@
1389 if( g.perm.RdForum && PB("sf") ) ssub[nsub++] = 'f';
1390 if( g.perm.RdTkt && PB("st") ) ssub[nsub++] = 't';
1391 if( g.perm.RdWiki && PB("sw") ) ssub[nsub++] = 'w';
1392 if( g.perm.RdForum && PB("sx") ) ssub[nsub++] = 'x';
1393 ssub[nsub] = 0;
1394 zCode = db_text(0,
1395 "INSERT INTO subscriber(semail,suname,"
1396 " sverified,sdonotcall,sdigest,ssub,sctime,mtime,smip)"
1397 "VALUES(%Q,%Q,%d,0,%d,%Q,now(),now(),%Q)"
1398 "RETURNING hex(subscriberCode);",
1399 /* semail */ zEAddr,
1400 /* suname */ suname,
1401 /* sverified */ needCaptcha==0,
1402 /* sdigest */ PB("di"),
1403 /* ssub */ ssub,
1404 /* smip */ g.zIpAddr
1405 );
 
 
 
 
1406 if( !needCaptcha ){
1407 /* The new subscription has been added on behalf of a logged-in user.
1408 ** No verification is required. Jump immediately to /alerts page.
1409 */
1410 if( g.perm.Admin ){
@@ -2278,10 +2274,11 @@
2274 memset(&anchor, 0, sizeof(anchor));
2275 pLast = &anchor;
2276 *pnEvent = 0;
2277 while( db_step(&q)==SQLITE_ROW ){
2278 const char *zType = "";
2279 const char *zComment = db_column_text(&q, 2);
2280 p = fossil_malloc( sizeof(EmailEvent) );
2281 pLast->pNext = p;
2282 pLast = p;
2283 p->type = db_column_text(&q, 3)[0];
2284 p->needMod = db_column_int(&q, 4);
@@ -2289,18 +2286,26 @@
2286 p->pNext = 0;
2287 switch( p->type ){
2288 case 'c': zType = "Check-In"; break;
2289 /* case 'f': -- forum posts omitted from this loop. See below */
2290 case 't': zType = "Ticket Change"; break;
2291 case 'w': {
2292 zType = "Wiki Edit";
2293 switch( zComment ? *zComment : 0 ){
2294 case ':': ++zComment; break;
2295 case '+': zType = "Wiki Added"; ++zComment; break;
2296 case '-': zType = "Wiki Removed"; ++zComment; break;
2297 }
2298 break;
2299 }
2300 }
2301 blob_init(&p->hdr, 0, 0);
2302 blob_init(&p->txt, 0, 0);
2303 blob_appendf(&p->txt,"== %s %s ==\n%s\n%s/info/%.20s\n",
2304 db_column_text(&q,1),
2305 zType,
2306 zComment,
2307 zUrl,
2308 db_column_text(&q,0)
2309 );
2310 if( p->needMod ){
2311 blob_appendf(&p->txt,
2312
+1 -1
--- src/allrepo.c
+++ src/allrepo.c
@@ -62,11 +62,11 @@
6262
** On Win32 systems, the file is named "_fossil" and is located in
6363
** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
6464
**
6565
** Available operations are:
6666
**
67
-** backup Backup all repositories. The argument must the name of
67
+** backup Backup all repositories. The argument must be the name of
6868
** a directory into which all backup repositories are written.
6969
**
7070
** cache Manages the cache used for potentially expensive web
7171
** pages. Any additional arguments are passed on verbatim
7272
** to the cache command.
7373
--- src/allrepo.c
+++ src/allrepo.c
@@ -62,11 +62,11 @@
62 ** On Win32 systems, the file is named "_fossil" and is located in
63 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
64 **
65 ** Available operations are:
66 **
67 ** backup Backup all repositories. The argument must the name of
68 ** a directory into which all backup repositories are written.
69 **
70 ** cache Manages the cache used for potentially expensive web
71 ** pages. Any additional arguments are passed on verbatim
72 ** to the cache command.
73
--- src/allrepo.c
+++ src/allrepo.c
@@ -62,11 +62,11 @@
62 ** On Win32 systems, the file is named "_fossil" and is located in
63 ** %LOCALAPPDATA%, %APPDATA% or %HOMEPATH%.
64 **
65 ** Available operations are:
66 **
67 ** backup Backup all repositories. The argument must be the name of
68 ** a directory into which all backup repositories are written.
69 **
70 ** cache Manages the cache used for potentially expensive web
71 ** pages. Any additional arguments are passed on verbatim
72 ** to the cache command.
73
+10 -5
--- src/branch.c
+++ src/branch.c
@@ -282,11 +282,11 @@
282282
**
283283
** If (which<0) then the query pulls only closed branches. If
284284
** (which>0) then the query pulls all (closed and opened)
285285
** branches. Else the query pulls currently-opened branches.
286286
*/
287
-void branch_prepare_list_query(Stmt *pQuery, int brFlags){
287
+void branch_prepare_list_query(Stmt *pQuery, int brFlags, const char *zBrNameGlob){
288288
Blob sql;
289289
blob_init(&sql, 0, 0);
290290
brlist_create_temp_table();
291291
switch( brFlags & BRL_OPEN_CLOSED_MASK ){
292292
case BRL_CLOSED_ONLY: {
@@ -295,11 +295,11 @@
295295
);
296296
break;
297297
}
298298
case BRL_BOTH: {
299299
blob_append_sql(&sql,
300
- "SELECT name FROM tmp_brlist"
300
+ "SELECT name FROM tmp_brlist WHERE 1"
301301
);
302302
break;
303303
}
304304
case BRL_OPEN_ONLY: {
305305
blob_append_sql(&sql,
@@ -306,10 +306,11 @@
306306
"SELECT name FROM tmp_brlist WHERE NOT isclosed"
307307
);
308308
break;
309309
}
310310
}
311
+ if(zBrNameGlob) blob_append_sql(&sql, " AND (name GLOB %Q)", zBrNameGlob);
311312
if( brFlags & BRL_ORDERBY_MTIME ){
312313
blob_append_sql(&sql, " ORDER BY -mtime");
313314
}else{
314315
blob_append_sql(&sql, " ORDER BY name COLLATE nocase");
315316
}
@@ -355,17 +356,19 @@
355356
**
356357
** > fossil branch info BRANCH-NAME
357358
**
358359
** Print information about a branch
359360
**
360
-** > fossil branch list|ls ?OPTIONS?
361
+** > fossil branch list|ls ?OPTIONS? ?GLOB?
361362
**
362363
** List all branches. Options:
363364
** -a|--all List all branches. Default show only open branches
364365
** -c|--closed List closed branches.
365366
** -r Reverse the sort order
366367
** -t Show recently changed branches first
368
+**
369
+** If GLOB is given, show only branches matching the pattern.
367370
**
368371
** > fossil branch new BRANCH-NAME BASIS ?OPTIONS?
369372
**
370373
** Create a new branch BRANCH-NAME off of check-in BASIS.
371374
** Supported options for this subcommand include:
@@ -418,22 +421,24 @@
418421
}
419422
}else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){
420423
Stmt q;
421424
int vid;
422425
char *zCurrent = 0;
426
+ const char *zBrNameGlob = 0;
423427
int brFlags = BRL_OPEN_ONLY;
424428
if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH;
425429
if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY;
426430
if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME;
427431
if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE;
432
+ if( g.argc >= 4 ) zBrNameGlob = g.argv[3];
428433
429434
if( g.localOpen ){
430435
vid = db_lget_int("checkout", 0);
431436
zCurrent = db_text(0, "SELECT value FROM tagxref"
432437
" WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
433438
}
434
- branch_prepare_list_query(&q, brFlags);
439
+ branch_prepare_list_query(&q, brFlags, zBrNameGlob);
435440
while( db_step(&q)==SQLITE_ROW ){
436441
const char *zBr = db_column_text(&q, 0);
437442
int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
438443
fossil_print("%s%s\n", (isCur ? "* " : " "), zBr);
439444
}
@@ -595,11 +600,11 @@
595600
@ reopened).</li>
596601
@ </ol>
597602
style_sidebox_end();
598603
#endif
599604
600
- branch_prepare_list_query(&q, brFlags);
605
+ branch_prepare_list_query(&q, brFlags, 0);
601606
cnt = 0;
602607
while( db_step(&q)==SQLITE_ROW ){
603608
const char *zBr = db_column_text(&q, 0);
604609
if( cnt==0 ){
605610
if( colorTest ){
606611
--- src/branch.c
+++ src/branch.c
@@ -282,11 +282,11 @@
282 **
283 ** If (which<0) then the query pulls only closed branches. If
284 ** (which>0) then the query pulls all (closed and opened)
285 ** branches. Else the query pulls currently-opened branches.
286 */
287 void branch_prepare_list_query(Stmt *pQuery, int brFlags){
288 Blob sql;
289 blob_init(&sql, 0, 0);
290 brlist_create_temp_table();
291 switch( brFlags & BRL_OPEN_CLOSED_MASK ){
292 case BRL_CLOSED_ONLY: {
@@ -295,11 +295,11 @@
295 );
296 break;
297 }
298 case BRL_BOTH: {
299 blob_append_sql(&sql,
300 "SELECT name FROM tmp_brlist"
301 );
302 break;
303 }
304 case BRL_OPEN_ONLY: {
305 blob_append_sql(&sql,
@@ -306,10 +306,11 @@
306 "SELECT name FROM tmp_brlist WHERE NOT isclosed"
307 );
308 break;
309 }
310 }
 
311 if( brFlags & BRL_ORDERBY_MTIME ){
312 blob_append_sql(&sql, " ORDER BY -mtime");
313 }else{
314 blob_append_sql(&sql, " ORDER BY name COLLATE nocase");
315 }
@@ -355,17 +356,19 @@
355 **
356 ** > fossil branch info BRANCH-NAME
357 **
358 ** Print information about a branch
359 **
360 ** > fossil branch list|ls ?OPTIONS?
361 **
362 ** List all branches. Options:
363 ** -a|--all List all branches. Default show only open branches
364 ** -c|--closed List closed branches.
365 ** -r Reverse the sort order
366 ** -t Show recently changed branches first
 
 
367 **
368 ** > fossil branch new BRANCH-NAME BASIS ?OPTIONS?
369 **
370 ** Create a new branch BRANCH-NAME off of check-in BASIS.
371 ** Supported options for this subcommand include:
@@ -418,22 +421,24 @@
418 }
419 }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){
420 Stmt q;
421 int vid;
422 char *zCurrent = 0;
 
423 int brFlags = BRL_OPEN_ONLY;
424 if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH;
425 if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY;
426 if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME;
427 if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE;
 
428
429 if( g.localOpen ){
430 vid = db_lget_int("checkout", 0);
431 zCurrent = db_text(0, "SELECT value FROM tagxref"
432 " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
433 }
434 branch_prepare_list_query(&q, brFlags);
435 while( db_step(&q)==SQLITE_ROW ){
436 const char *zBr = db_column_text(&q, 0);
437 int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
438 fossil_print("%s%s\n", (isCur ? "* " : " "), zBr);
439 }
@@ -595,11 +600,11 @@
595 @ reopened).</li>
596 @ </ol>
597 style_sidebox_end();
598 #endif
599
600 branch_prepare_list_query(&q, brFlags);
601 cnt = 0;
602 while( db_step(&q)==SQLITE_ROW ){
603 const char *zBr = db_column_text(&q, 0);
604 if( cnt==0 ){
605 if( colorTest ){
606
--- src/branch.c
+++ src/branch.c
@@ -282,11 +282,11 @@
282 **
283 ** If (which<0) then the query pulls only closed branches. If
284 ** (which>0) then the query pulls all (closed and opened)
285 ** branches. Else the query pulls currently-opened branches.
286 */
287 void branch_prepare_list_query(Stmt *pQuery, int brFlags, const char *zBrNameGlob){
288 Blob sql;
289 blob_init(&sql, 0, 0);
290 brlist_create_temp_table();
291 switch( brFlags & BRL_OPEN_CLOSED_MASK ){
292 case BRL_CLOSED_ONLY: {
@@ -295,11 +295,11 @@
295 );
296 break;
297 }
298 case BRL_BOTH: {
299 blob_append_sql(&sql,
300 "SELECT name FROM tmp_brlist WHERE 1"
301 );
302 break;
303 }
304 case BRL_OPEN_ONLY: {
305 blob_append_sql(&sql,
@@ -306,10 +306,11 @@
306 "SELECT name FROM tmp_brlist WHERE NOT isclosed"
307 );
308 break;
309 }
310 }
311 if(zBrNameGlob) blob_append_sql(&sql, " AND (name GLOB %Q)", zBrNameGlob);
312 if( brFlags & BRL_ORDERBY_MTIME ){
313 blob_append_sql(&sql, " ORDER BY -mtime");
314 }else{
315 blob_append_sql(&sql, " ORDER BY name COLLATE nocase");
316 }
@@ -355,17 +356,19 @@
356 **
357 ** > fossil branch info BRANCH-NAME
358 **
359 ** Print information about a branch
360 **
361 ** > fossil branch list|ls ?OPTIONS? ?GLOB?
362 **
363 ** List all branches. Options:
364 ** -a|--all List all branches. Default show only open branches
365 ** -c|--closed List closed branches.
366 ** -r Reverse the sort order
367 ** -t Show recently changed branches first
368 **
369 ** If GLOB is given, show only branches matching the pattern.
370 **
371 ** > fossil branch new BRANCH-NAME BASIS ?OPTIONS?
372 **
373 ** Create a new branch BRANCH-NAME off of check-in BASIS.
374 ** Supported options for this subcommand include:
@@ -418,22 +421,24 @@
421 }
422 }else if( (strncmp(zCmd,"list",n)==0)||(strncmp(zCmd, "ls", n)==0) ){
423 Stmt q;
424 int vid;
425 char *zCurrent = 0;
426 const char *zBrNameGlob = 0;
427 int brFlags = BRL_OPEN_ONLY;
428 if( find_option("all","a",0)!=0 ) brFlags = BRL_BOTH;
429 if( find_option("closed","c",0)!=0 ) brFlags = BRL_CLOSED_ONLY;
430 if( find_option("t",0,0)!=0 ) brFlags |= BRL_ORDERBY_MTIME;
431 if( find_option("r",0,0)!=0 ) brFlags |= BRL_REVERSE;
432 if( g.argc >= 4 ) zBrNameGlob = g.argv[3];
433
434 if( g.localOpen ){
435 vid = db_lget_int("checkout", 0);
436 zCurrent = db_text(0, "SELECT value FROM tagxref"
437 " WHERE rid=%d AND tagid=%d", vid, TAG_BRANCH);
438 }
439 branch_prepare_list_query(&q, brFlags, zBrNameGlob);
440 while( db_step(&q)==SQLITE_ROW ){
441 const char *zBr = db_column_text(&q, 0);
442 int isCur = zCurrent!=0 && fossil_strcmp(zCurrent,zBr)==0;
443 fossil_print("%s%s\n", (isCur ? "* " : " "), zBr);
444 }
@@ -595,11 +600,11 @@
600 @ reopened).</li>
601 @ </ol>
602 style_sidebox_end();
603 #endif
604
605 branch_prepare_list_query(&q, brFlags, 0);
606 cnt = 0;
607 while( db_step(&q)==SQLITE_ROW ){
608 const char *zBr = db_column_text(&q, 0);
609 if( cnt==0 ){
610 if( colorTest ){
611
--- src/captcha.c
+++ src/captcha.c
@@ -514,11 +514,10 @@
514514
if( zSeed==0 ) return 0;
515515
zEntered = P("captcha");
516516
if( zEntered==0 || strlen(zEntered)!=8 ) return 0;
517517
zDecode = captcha_decode((unsigned int)atoi(zSeed));
518518
assert( strlen(zDecode)==8 );
519
- if( strlen(zEntered)!=8 ) return 0;
520519
for(i=0; i<8; i++){
521520
char c = zEntered[i];
522521
if( c>='A' && c<='F' ) c += 'a' - 'A';
523522
if( c=='O' ) c = '0';
524523
z[i] = c;
525524
--- src/captcha.c
+++ src/captcha.c
@@ -514,11 +514,10 @@
514 if( zSeed==0 ) return 0;
515 zEntered = P("captcha");
516 if( zEntered==0 || strlen(zEntered)!=8 ) return 0;
517 zDecode = captcha_decode((unsigned int)atoi(zSeed));
518 assert( strlen(zDecode)==8 );
519 if( strlen(zEntered)!=8 ) return 0;
520 for(i=0; i<8; i++){
521 char c = zEntered[i];
522 if( c>='A' && c<='F' ) c += 'a' - 'A';
523 if( c=='O' ) c = '0';
524 z[i] = c;
525
--- src/captcha.c
+++ src/captcha.c
@@ -514,11 +514,10 @@
514 if( zSeed==0 ) return 0;
515 zEntered = P("captcha");
516 if( zEntered==0 || strlen(zEntered)!=8 ) return 0;
517 zDecode = captcha_decode((unsigned int)atoi(zSeed));
518 assert( strlen(zDecode)==8 );
 
519 for(i=0; i<8; i++){
520 char c = zEntered[i];
521 if( c>='A' && c<='F' ) c += 'a' - 'A';
522 if( c=='O' ) c = '0';
523 z[i] = c;
524
+55 -20
--- src/cgi.c
+++ src/cgi.c
@@ -196,11 +196,11 @@
196196
197197
/*
198198
** Set the reply content type
199199
*/
200200
void cgi_set_content_type(const char *zType){
201
- zContentType = mprintf("%s", zType);
201
+ zContentType = fossil_strdup(zType);
202202
}
203203
204204
/*
205205
** Set the reply content to the specified BLOB.
206206
*/
@@ -213,11 +213,11 @@
213213
214214
/*
215215
** Set the reply status code
216216
*/
217217
void cgi_set_status(int iStat, const char *zStat){
218
- zReplyStatus = mprintf("%s", zStat);
218
+ zReplyStatus = fossil_strdup(zStat);
219219
iReplyStatus = iStat;
220220
}
221221
222222
/*
223223
** Append text to the header of an HTTP reply
@@ -580,14 +580,14 @@
580580
** is its fully decoded value.
581581
**
582582
** Copies are made of both the zName and zValue parameters.
583583
*/
584584
void cgi_set_parameter(const char *zName, const char *zValue){
585
- cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 0);
585
+ cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 0);
586586
}
587587
void cgi_set_query_parameter(const char *zName, const char *zValue){
588
- cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 1);
588
+ cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 1);
589589
}
590590
591591
/*
592592
** Replace a parameter with a new value.
593593
*/
@@ -650,11 +650,11 @@
650650
/*
651651
** Add a query parameter. The zName portion is fixed but a copy
652652
** must be made of zValue.
653653
*/
654654
void cgi_setenv(const char *zName, const char *zValue){
655
- cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
655
+ cgi_set_parameter_nocopy(zName, fossil_strdup(zValue), 0);
656656
}
657657
658658
/*
659659
** Add a list of query parameters or cookies to the parameter set.
660660
**
@@ -1050,10 +1050,15 @@
10501050
** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided
10511051
** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and
10521052
** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then
10531053
** assume that PATH_INFO is an empty string and set REQUEST_URI equal
10541054
** to PATH_INFO.
1055
+**
1056
+** Sometimes PATH_INFO is missing and SCRIPT_NAME is not a prefix of
1057
+** REQUEST_URI. (See https://fossil-scm.org/forum/forumpost/049e8650ed)
1058
+** In that case, truncate SCRIPT_NAME so that it is a proper prefix
1059
+** of REQUEST_URI.
10551060
**
10561061
** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and
10571062
** PATH_INFO when it is empty.
10581063
**
10591064
** CGI Parameter quick reference:
@@ -1095,11 +1100,11 @@
10951100
nRU = strlen(zRequestUri);
10961101
nPI = strlen(zPathInfo);
10971102
if( nRU<nPI ){
10981103
malformed_request("PATH_INFO is longer than REQUEST_URI");
10991104
}
1100
- zScriptName = mprintf("%.*s", (int)(nRU-nPI), zRequestUri);
1105
+ zScriptName = fossil_strndup(zRequestUri,(int)(nRU-nPI));
11011106
cgi_set_parameter("SCRIPT_NAME", zScriptName);
11021107
}
11031108
11041109
#ifdef _WIN32
11051110
/* The Microsoft IIS web server does not define REQUEST_URI, instead it uses
@@ -1109,11 +1114,11 @@
11091114
if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){
11101115
int i, j;
11111116
cgi_set_parameter("REQUEST_URI", zPathInfo);
11121117
for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){}
11131118
for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){}
1114
- zPathInfo = mprintf("%.*s", j-i, zPathInfo+i);
1119
+ zPathInfo = fossil_strndup(zPathInfo+i, j-i);
11151120
cgi_replace_parameter("PATH_INFO", zPathInfo);
11161121
}
11171122
#endif
11181123
if( zRequestUri==0 ){
11191124
const char *z = zPathInfo;
@@ -1126,12 +1131,19 @@
11261131
}
11271132
if( zPathInfo==0 ){
11281133
int i, j;
11291134
for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){}
11301135
for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){}
1131
- zPathInfo = mprintf("%.*s", j-i, zRequestUri+i);
1132
- cgi_set_parameter("PATH_INFO", zPathInfo);
1136
+ zPathInfo = fossil_strndup(zRequestUri+i, j-i);
1137
+ cgi_set_parameter_nocopy("PATH_INFO", zPathInfo, 0);
1138
+ if( j>i && zScriptName[i]!=0 ){
1139
+ /* If SCRIPT_NAME is not a prefix of REQUEST_URI, truncate it so
1140
+ ** that it is. See https://fossil-scm.org/forum/forumpost/049e8650ed
1141
+ */
1142
+ char *zNew = fossil_strndup(zScriptName, i);
1143
+ cgi_replace_parameter("SCRIPT_NAME", zNew);
1144
+ }
11331145
}
11341146
#ifdef FOSSIL_ENABLE_JSON
11351147
if(noJson==0 && json_request_is_json_api(zPathInfo)){
11361148
/* We need to change some following behaviour depending on whether
11371149
** we are operating in JSON mode or not. We cannot, however, be
@@ -1145,30 +1157,30 @@
11451157
"Internal misconfiguration of g.json.isJsonMode");
11461158
}
11471159
#endif
11481160
z = (char*)P("HTTP_COOKIE");
11491161
if( z ){
1150
- z = mprintf("%s",z);
1162
+ z = fossil_strdup(z);
11511163
add_param_list(z, ';');
11521164
}
11531165
11541166
z = (char*)P("QUERY_STRING");
11551167
if( z ){
1156
- z = mprintf("%s",z);
1168
+ z = fossil_strdup(z);
11571169
add_param_list(z, '&');
11581170
}
11591171
11601172
z = (char*)P("REMOTE_ADDR");
11611173
if( z ){
1162
- g.zIpAddr = mprintf("%s", z);
1174
+ g.zIpAddr = fossil_strdup(z);
11631175
}
11641176
11651177
len = atoi(PD("CONTENT_LENGTH", "0"));
11661178
zType = P("CONTENT_TYPE");
11671179
zSemi = zType ? strchr(zType, ';') : 0;
11681180
if( zSemi ){
1169
- g.zContentType = mprintf("%.*s", (int)(zSemi-zType), zType);
1181
+ g.zContentType = fossil_strndup(zType, (int)(zSemi-zType));
11701182
zType = g.zContentType;
11711183
}else{
11721184
g.zContentType = zType;
11731185
}
11741186
blob_zero(&g.cgiIn);
@@ -1477,10 +1489,33 @@
14771489
break;
14781490
}
14791491
}
14801492
}
14811493
}
1494
+
1495
+/*
1496
+** Put information about the N-th parameter into arguments.
1497
+** Return non-zero on success, and return 0 if there is no N-th parameter.
1498
+*/
1499
+int cgi_param_info(
1500
+ int N,
1501
+ const char **pzName,
1502
+ const char **pzValue,
1503
+ int *pbIsQP
1504
+){
1505
+ if( N>=0 && N<nUsedQP ){
1506
+ *pzName = aParamQP[N].zName;
1507
+ *pzValue = aParamQP[N].zValue;
1508
+ *pbIsQP = aParamQP[N].isQP;
1509
+ return 1;
1510
+ }else{
1511
+ *pzName = 0;
1512
+ *pzValue = 0;
1513
+ *pbIsQP = 0;
1514
+ return 0;
1515
+ }
1516
+}
14821517
14831518
/*
14841519
** Export all untagged query parameters (but not cookies or environment
14851520
** variables) as hidden values of a form.
14861521
*/
@@ -1695,11 +1730,11 @@
16951730
if( zIpAddr==0 ){
16961731
zIpAddr = cgi_remote_ip(fileno(g.httpIn));
16971732
}
16981733
if( zIpAddr ){
16991734
cgi_setenv("REMOTE_ADDR", zIpAddr);
1700
- g.zIpAddr = mprintf("%s", zIpAddr);
1735
+ g.zIpAddr = fossil_strdup(zIpAddr);
17011736
}
17021737
17031738
17041739
/* Get all the optional fields that follow the first line.
17051740
*/
@@ -1746,11 +1781,11 @@
17461781
}else if( fossil_strcmp(zFieldName,"authorization:")==0 ){
17471782
cgi_setenv("HTTP_AUTHORIZATION", zVal);
17481783
}else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){
17491784
const char *zIpAddr = cgi_accept_forwarded_for(zVal);
17501785
if( zIpAddr!=0 ){
1751
- g.zIpAddr = mprintf("%s", zIpAddr);
1786
+ g.zIpAddr = fossil_strdup(zIpAddr);
17521787
cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr);
17531788
}
17541789
}else if( fossil_strcmp(zFieldName,"range:")==0 ){
17551790
int x1 = 0;
17561791
int x2 = 0;
@@ -1786,11 +1821,11 @@
17861821
if( nCycles==0 ){ json_bootstrap_early(); }
17871822
#endif
17881823
if( zIpAddr ){
17891824
if( nCycles==0 ){
17901825
cgi_setenv("REMOTE_ADDR", zIpAddr);
1791
- g.zIpAddr = mprintf("%s", zIpAddr);
1826
+ g.zIpAddr = fossil_strdup(zIpAddr);
17921827
}
17931828
}else{
17941829
fossil_panic("missing SSH IP address");
17951830
}
17961831
if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
@@ -1848,11 +1883,11 @@
18481883
for(i=0; zToken[i] && zToken[i]!='?'; i++){}
18491884
if( zToken[i] ) zToken[i++] = 0;
18501885
if( nCycles==0 ){
18511886
cgi_setenv("PATH_INFO", zToken);
18521887
}else{
1853
- cgi_replace_parameter("PATH_INFO", mprintf("%s",zToken));
1888
+ cgi_replace_parameter("PATH_INFO", fossil_strdup(zToken));
18541889
}
18551890
18561891
/* Get all the optional fields that follow the first line.
18571892
*/
18581893
while( fgets(zLine,sizeof(zLine),g.httpIn) ){
@@ -1870,11 +1905,11 @@
18701905
zFieldName[i] = fossil_tolower(zFieldName[i]);
18711906
}
18721907
if( fossil_strcmp(zFieldName,"content-length:")==0 ){
18731908
content_length = atoi(zVal);
18741909
}else if( fossil_strcmp(zFieldName,"content-type:")==0 ){
1875
- g.zContentType = zType = mprintf("%s", zVal);
1910
+ g.zContentType = zType = fossil_strdup(zVal);
18761911
}else if( fossil_strcmp(zFieldName,"host:")==0 ){
18771912
if( nCycles==0 ){
18781913
cgi_setenv("HTTP_HOST", zVal);
18791914
}
18801915
}else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){
@@ -1947,11 +1982,11 @@
19471982
19481983
/* Got all probes now first transport_open is completed
19491984
** so return the command that was requested
19501985
*/
19511986
g.fSshClient |= CGI_SSH_COMPAT;
1952
- return mprintf("%s", zToken);
1987
+ return fossil_strdup(zToken);
19531988
}
19541989
19551990
/*
19561991
** This routine handles the old fossil SSH transport_flip
19571992
** and transport_open communications if detected.
@@ -2323,11 +2358,11 @@
23232358
const char *cgi_ssh_remote_addr(const char *zDefault){
23242359
char *zIndex;
23252360
const char *zSshConn = fossil_getenv("SSH_CONNECTION");
23262361
23272362
if( zSshConn && zSshConn[0] ){
2328
- char *zSshClient = mprintf("%s",zSshConn);
2363
+ char *zSshClient = fossil_strdup(zSshConn);
23292364
if( (zIndex = strchr(zSshClient,' '))!=0 ){
23302365
zSshClient[zIndex-zSshClient] = '\0';
23312366
return zSshClient;
23322367
}
23332368
}
23342369
--- src/cgi.c
+++ src/cgi.c
@@ -196,11 +196,11 @@
196
197 /*
198 ** Set the reply content type
199 */
200 void cgi_set_content_type(const char *zType){
201 zContentType = mprintf("%s", zType);
202 }
203
204 /*
205 ** Set the reply content to the specified BLOB.
206 */
@@ -213,11 +213,11 @@
213
214 /*
215 ** Set the reply status code
216 */
217 void cgi_set_status(int iStat, const char *zStat){
218 zReplyStatus = mprintf("%s", zStat);
219 iReplyStatus = iStat;
220 }
221
222 /*
223 ** Append text to the header of an HTTP reply
@@ -580,14 +580,14 @@
580 ** is its fully decoded value.
581 **
582 ** Copies are made of both the zName and zValue parameters.
583 */
584 void cgi_set_parameter(const char *zName, const char *zValue){
585 cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 0);
586 }
587 void cgi_set_query_parameter(const char *zName, const char *zValue){
588 cgi_set_parameter_nocopy(mprintf("%s",zName), mprintf("%s",zValue), 1);
589 }
590
591 /*
592 ** Replace a parameter with a new value.
593 */
@@ -650,11 +650,11 @@
650 /*
651 ** Add a query parameter. The zName portion is fixed but a copy
652 ** must be made of zValue.
653 */
654 void cgi_setenv(const char *zName, const char *zValue){
655 cgi_set_parameter_nocopy(zName, mprintf("%s",zValue), 0);
656 }
657
658 /*
659 ** Add a list of query parameters or cookies to the parameter set.
660 **
@@ -1050,10 +1050,15 @@
1050 ** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided
1051 ** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and
1052 ** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then
1053 ** assume that PATH_INFO is an empty string and set REQUEST_URI equal
1054 ** to PATH_INFO.
 
 
 
 
 
1055 **
1056 ** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and
1057 ** PATH_INFO when it is empty.
1058 **
1059 ** CGI Parameter quick reference:
@@ -1095,11 +1100,11 @@
1095 nRU = strlen(zRequestUri);
1096 nPI = strlen(zPathInfo);
1097 if( nRU<nPI ){
1098 malformed_request("PATH_INFO is longer than REQUEST_URI");
1099 }
1100 zScriptName = mprintf("%.*s", (int)(nRU-nPI), zRequestUri);
1101 cgi_set_parameter("SCRIPT_NAME", zScriptName);
1102 }
1103
1104 #ifdef _WIN32
1105 /* The Microsoft IIS web server does not define REQUEST_URI, instead it uses
@@ -1109,11 +1114,11 @@
1109 if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){
1110 int i, j;
1111 cgi_set_parameter("REQUEST_URI", zPathInfo);
1112 for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){}
1113 for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){}
1114 zPathInfo = mprintf("%.*s", j-i, zPathInfo+i);
1115 cgi_replace_parameter("PATH_INFO", zPathInfo);
1116 }
1117 #endif
1118 if( zRequestUri==0 ){
1119 const char *z = zPathInfo;
@@ -1126,12 +1131,19 @@
1126 }
1127 if( zPathInfo==0 ){
1128 int i, j;
1129 for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){}
1130 for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){}
1131 zPathInfo = mprintf("%.*s", j-i, zRequestUri+i);
1132 cgi_set_parameter("PATH_INFO", zPathInfo);
 
 
 
 
 
 
 
1133 }
1134 #ifdef FOSSIL_ENABLE_JSON
1135 if(noJson==0 && json_request_is_json_api(zPathInfo)){
1136 /* We need to change some following behaviour depending on whether
1137 ** we are operating in JSON mode or not. We cannot, however, be
@@ -1145,30 +1157,30 @@
1145 "Internal misconfiguration of g.json.isJsonMode");
1146 }
1147 #endif
1148 z = (char*)P("HTTP_COOKIE");
1149 if( z ){
1150 z = mprintf("%s",z);
1151 add_param_list(z, ';');
1152 }
1153
1154 z = (char*)P("QUERY_STRING");
1155 if( z ){
1156 z = mprintf("%s",z);
1157 add_param_list(z, '&');
1158 }
1159
1160 z = (char*)P("REMOTE_ADDR");
1161 if( z ){
1162 g.zIpAddr = mprintf("%s", z);
1163 }
1164
1165 len = atoi(PD("CONTENT_LENGTH", "0"));
1166 zType = P("CONTENT_TYPE");
1167 zSemi = zType ? strchr(zType, ';') : 0;
1168 if( zSemi ){
1169 g.zContentType = mprintf("%.*s", (int)(zSemi-zType), zType);
1170 zType = g.zContentType;
1171 }else{
1172 g.zContentType = zType;
1173 }
1174 blob_zero(&g.cgiIn);
@@ -1477,10 +1489,33 @@
1477 break;
1478 }
1479 }
1480 }
1481 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1482
1483 /*
1484 ** Export all untagged query parameters (but not cookies or environment
1485 ** variables) as hidden values of a form.
1486 */
@@ -1695,11 +1730,11 @@
1695 if( zIpAddr==0 ){
1696 zIpAddr = cgi_remote_ip(fileno(g.httpIn));
1697 }
1698 if( zIpAddr ){
1699 cgi_setenv("REMOTE_ADDR", zIpAddr);
1700 g.zIpAddr = mprintf("%s", zIpAddr);
1701 }
1702
1703
1704 /* Get all the optional fields that follow the first line.
1705 */
@@ -1746,11 +1781,11 @@
1746 }else if( fossil_strcmp(zFieldName,"authorization:")==0 ){
1747 cgi_setenv("HTTP_AUTHORIZATION", zVal);
1748 }else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){
1749 const char *zIpAddr = cgi_accept_forwarded_for(zVal);
1750 if( zIpAddr!=0 ){
1751 g.zIpAddr = mprintf("%s", zIpAddr);
1752 cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr);
1753 }
1754 }else if( fossil_strcmp(zFieldName,"range:")==0 ){
1755 int x1 = 0;
1756 int x2 = 0;
@@ -1786,11 +1821,11 @@
1786 if( nCycles==0 ){ json_bootstrap_early(); }
1787 #endif
1788 if( zIpAddr ){
1789 if( nCycles==0 ){
1790 cgi_setenv("REMOTE_ADDR", zIpAddr);
1791 g.zIpAddr = mprintf("%s", zIpAddr);
1792 }
1793 }else{
1794 fossil_panic("missing SSH IP address");
1795 }
1796 if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
@@ -1848,11 +1883,11 @@
1848 for(i=0; zToken[i] && zToken[i]!='?'; i++){}
1849 if( zToken[i] ) zToken[i++] = 0;
1850 if( nCycles==0 ){
1851 cgi_setenv("PATH_INFO", zToken);
1852 }else{
1853 cgi_replace_parameter("PATH_INFO", mprintf("%s",zToken));
1854 }
1855
1856 /* Get all the optional fields that follow the first line.
1857 */
1858 while( fgets(zLine,sizeof(zLine),g.httpIn) ){
@@ -1870,11 +1905,11 @@
1870 zFieldName[i] = fossil_tolower(zFieldName[i]);
1871 }
1872 if( fossil_strcmp(zFieldName,"content-length:")==0 ){
1873 content_length = atoi(zVal);
1874 }else if( fossil_strcmp(zFieldName,"content-type:")==0 ){
1875 g.zContentType = zType = mprintf("%s", zVal);
1876 }else if( fossil_strcmp(zFieldName,"host:")==0 ){
1877 if( nCycles==0 ){
1878 cgi_setenv("HTTP_HOST", zVal);
1879 }
1880 }else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){
@@ -1947,11 +1982,11 @@
1947
1948 /* Got all probes now first transport_open is completed
1949 ** so return the command that was requested
1950 */
1951 g.fSshClient |= CGI_SSH_COMPAT;
1952 return mprintf("%s", zToken);
1953 }
1954
1955 /*
1956 ** This routine handles the old fossil SSH transport_flip
1957 ** and transport_open communications if detected.
@@ -2323,11 +2358,11 @@
2323 const char *cgi_ssh_remote_addr(const char *zDefault){
2324 char *zIndex;
2325 const char *zSshConn = fossil_getenv("SSH_CONNECTION");
2326
2327 if( zSshConn && zSshConn[0] ){
2328 char *zSshClient = mprintf("%s",zSshConn);
2329 if( (zIndex = strchr(zSshClient,' '))!=0 ){
2330 zSshClient[zIndex-zSshClient] = '\0';
2331 return zSshClient;
2332 }
2333 }
2334
--- src/cgi.c
+++ src/cgi.c
@@ -196,11 +196,11 @@
196
197 /*
198 ** Set the reply content type
199 */
200 void cgi_set_content_type(const char *zType){
201 zContentType = fossil_strdup(zType);
202 }
203
204 /*
205 ** Set the reply content to the specified BLOB.
206 */
@@ -213,11 +213,11 @@
213
214 /*
215 ** Set the reply status code
216 */
217 void cgi_set_status(int iStat, const char *zStat){
218 zReplyStatus = fossil_strdup(zStat);
219 iReplyStatus = iStat;
220 }
221
222 /*
223 ** Append text to the header of an HTTP reply
@@ -580,14 +580,14 @@
580 ** is its fully decoded value.
581 **
582 ** Copies are made of both the zName and zValue parameters.
583 */
584 void cgi_set_parameter(const char *zName, const char *zValue){
585 cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 0);
586 }
587 void cgi_set_query_parameter(const char *zName, const char *zValue){
588 cgi_set_parameter_nocopy(fossil_strdup(zName),fossil_strdup(zValue), 1);
589 }
590
591 /*
592 ** Replace a parameter with a new value.
593 */
@@ -650,11 +650,11 @@
650 /*
651 ** Add a query parameter. The zName portion is fixed but a copy
652 ** must be made of zValue.
653 */
654 void cgi_setenv(const char *zName, const char *zValue){
655 cgi_set_parameter_nocopy(zName, fossil_strdup(zValue), 0);
656 }
657
658 /*
659 ** Add a list of query parameters or cookies to the parameter set.
660 **
@@ -1050,10 +1050,15 @@
1050 ** computed from REQUEST_URI and SCRIPT_NAME. If PATH_INFO is provided
1051 ** but REQUEST_URI is not, then compute REQUEST_URI from PATH_INFO and
1052 ** SCRIPT_NAME. If neither REQUEST_URI nor PATH_INFO are provided, then
1053 ** assume that PATH_INFO is an empty string and set REQUEST_URI equal
1054 ** to PATH_INFO.
1055 **
1056 ** Sometimes PATH_INFO is missing and SCRIPT_NAME is not a prefix of
1057 ** REQUEST_URI. (See https://fossil-scm.org/forum/forumpost/049e8650ed)
1058 ** In that case, truncate SCRIPT_NAME so that it is a proper prefix
1059 ** of REQUEST_URI.
1060 **
1061 ** SCGI typically omits PATH_INFO. CGI sometimes omits REQUEST_URI and
1062 ** PATH_INFO when it is empty.
1063 **
1064 ** CGI Parameter quick reference:
@@ -1095,11 +1100,11 @@
1100 nRU = strlen(zRequestUri);
1101 nPI = strlen(zPathInfo);
1102 if( nRU<nPI ){
1103 malformed_request("PATH_INFO is longer than REQUEST_URI");
1104 }
1105 zScriptName = fossil_strndup(zRequestUri,(int)(nRU-nPI));
1106 cgi_set_parameter("SCRIPT_NAME", zScriptName);
1107 }
1108
1109 #ifdef _WIN32
1110 /* The Microsoft IIS web server does not define REQUEST_URI, instead it uses
@@ -1109,11 +1114,11 @@
1114 if( zServerSoftware && strstr(zServerSoftware, "Microsoft-IIS") ){
1115 int i, j;
1116 cgi_set_parameter("REQUEST_URI", zPathInfo);
1117 for(i=0; zPathInfo[i]==zScriptName[i] && zPathInfo[i]; i++){}
1118 for(j=i; zPathInfo[j] && zPathInfo[j]!='?'; j++){}
1119 zPathInfo = fossil_strndup(zPathInfo+i, j-i);
1120 cgi_replace_parameter("PATH_INFO", zPathInfo);
1121 }
1122 #endif
1123 if( zRequestUri==0 ){
1124 const char *z = zPathInfo;
@@ -1126,12 +1131,19 @@
1131 }
1132 if( zPathInfo==0 ){
1133 int i, j;
1134 for(i=0; zRequestUri[i]==zScriptName[i] && zRequestUri[i]; i++){}
1135 for(j=i; zRequestUri[j] && zRequestUri[j]!='?'; j++){}
1136 zPathInfo = fossil_strndup(zRequestUri+i, j-i);
1137 cgi_set_parameter_nocopy("PATH_INFO", zPathInfo, 0);
1138 if( j>i && zScriptName[i]!=0 ){
1139 /* If SCRIPT_NAME is not a prefix of REQUEST_URI, truncate it so
1140 ** that it is. See https://fossil-scm.org/forum/forumpost/049e8650ed
1141 */
1142 char *zNew = fossil_strndup(zScriptName, i);
1143 cgi_replace_parameter("SCRIPT_NAME", zNew);
1144 }
1145 }
1146 #ifdef FOSSIL_ENABLE_JSON
1147 if(noJson==0 && json_request_is_json_api(zPathInfo)){
1148 /* We need to change some following behaviour depending on whether
1149 ** we are operating in JSON mode or not. We cannot, however, be
@@ -1145,30 +1157,30 @@
1157 "Internal misconfiguration of g.json.isJsonMode");
1158 }
1159 #endif
1160 z = (char*)P("HTTP_COOKIE");
1161 if( z ){
1162 z = fossil_strdup(z);
1163 add_param_list(z, ';');
1164 }
1165
1166 z = (char*)P("QUERY_STRING");
1167 if( z ){
1168 z = fossil_strdup(z);
1169 add_param_list(z, '&');
1170 }
1171
1172 z = (char*)P("REMOTE_ADDR");
1173 if( z ){
1174 g.zIpAddr = fossil_strdup(z);
1175 }
1176
1177 len = atoi(PD("CONTENT_LENGTH", "0"));
1178 zType = P("CONTENT_TYPE");
1179 zSemi = zType ? strchr(zType, ';') : 0;
1180 if( zSemi ){
1181 g.zContentType = fossil_strndup(zType, (int)(zSemi-zType));
1182 zType = g.zContentType;
1183 }else{
1184 g.zContentType = zType;
1185 }
1186 blob_zero(&g.cgiIn);
@@ -1477,10 +1489,33 @@
1489 break;
1490 }
1491 }
1492 }
1493 }
1494
1495 /*
1496 ** Put information about the N-th parameter into arguments.
1497 ** Return non-zero on success, and return 0 if there is no N-th parameter.
1498 */
1499 int cgi_param_info(
1500 int N,
1501 const char **pzName,
1502 const char **pzValue,
1503 int *pbIsQP
1504 ){
1505 if( N>=0 && N<nUsedQP ){
1506 *pzName = aParamQP[N].zName;
1507 *pzValue = aParamQP[N].zValue;
1508 *pbIsQP = aParamQP[N].isQP;
1509 return 1;
1510 }else{
1511 *pzName = 0;
1512 *pzValue = 0;
1513 *pbIsQP = 0;
1514 return 0;
1515 }
1516 }
1517
1518 /*
1519 ** Export all untagged query parameters (but not cookies or environment
1520 ** variables) as hidden values of a form.
1521 */
@@ -1695,11 +1730,11 @@
1730 if( zIpAddr==0 ){
1731 zIpAddr = cgi_remote_ip(fileno(g.httpIn));
1732 }
1733 if( zIpAddr ){
1734 cgi_setenv("REMOTE_ADDR", zIpAddr);
1735 g.zIpAddr = fossil_strdup(zIpAddr);
1736 }
1737
1738
1739 /* Get all the optional fields that follow the first line.
1740 */
@@ -1746,11 +1781,11 @@
1781 }else if( fossil_strcmp(zFieldName,"authorization:")==0 ){
1782 cgi_setenv("HTTP_AUTHORIZATION", zVal);
1783 }else if( fossil_strcmp(zFieldName,"x-forwarded-for:")==0 ){
1784 const char *zIpAddr = cgi_accept_forwarded_for(zVal);
1785 if( zIpAddr!=0 ){
1786 g.zIpAddr = fossil_strdup(zIpAddr);
1787 cgi_replace_parameter("REMOTE_ADDR", g.zIpAddr);
1788 }
1789 }else if( fossil_strcmp(zFieldName,"range:")==0 ){
1790 int x1 = 0;
1791 int x2 = 0;
@@ -1786,11 +1821,11 @@
1821 if( nCycles==0 ){ json_bootstrap_early(); }
1822 #endif
1823 if( zIpAddr ){
1824 if( nCycles==0 ){
1825 cgi_setenv("REMOTE_ADDR", zIpAddr);
1826 g.zIpAddr = fossil_strdup(zIpAddr);
1827 }
1828 }else{
1829 fossil_panic("missing SSH IP address");
1830 }
1831 if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
@@ -1848,11 +1883,11 @@
1883 for(i=0; zToken[i] && zToken[i]!='?'; i++){}
1884 if( zToken[i] ) zToken[i++] = 0;
1885 if( nCycles==0 ){
1886 cgi_setenv("PATH_INFO", zToken);
1887 }else{
1888 cgi_replace_parameter("PATH_INFO", fossil_strdup(zToken));
1889 }
1890
1891 /* Get all the optional fields that follow the first line.
1892 */
1893 while( fgets(zLine,sizeof(zLine),g.httpIn) ){
@@ -1870,11 +1905,11 @@
1905 zFieldName[i] = fossil_tolower(zFieldName[i]);
1906 }
1907 if( fossil_strcmp(zFieldName,"content-length:")==0 ){
1908 content_length = atoi(zVal);
1909 }else if( fossil_strcmp(zFieldName,"content-type:")==0 ){
1910 g.zContentType = zType = fossil_strdup(zVal);
1911 }else if( fossil_strcmp(zFieldName,"host:")==0 ){
1912 if( nCycles==0 ){
1913 cgi_setenv("HTTP_HOST", zVal);
1914 }
1915 }else if( fossil_strcmp(zFieldName,"user-agent:")==0 ){
@@ -1947,11 +1982,11 @@
1982
1983 /* Got all probes now first transport_open is completed
1984 ** so return the command that was requested
1985 */
1986 g.fSshClient |= CGI_SSH_COMPAT;
1987 return fossil_strdup(zToken);
1988 }
1989
1990 /*
1991 ** This routine handles the old fossil SSH transport_flip
1992 ** and transport_open communications if detected.
@@ -2323,11 +2358,11 @@
2358 const char *cgi_ssh_remote_addr(const char *zDefault){
2359 char *zIndex;
2360 const char *zSshConn = fossil_getenv("SSH_CONNECTION");
2361
2362 if( zSshConn && zSshConn[0] ){
2363 char *zSshClient = fossil_strdup(zSshConn);
2364 if( (zIndex = strchr(zSshClient,' '))!=0 ){
2365 zSshClient[zIndex-zSshClient] = '\0';
2366 return zSshClient;
2367 }
2368 }
2369
+6 -3
--- src/chat.c
+++ src/chat.c
@@ -371,16 +371,19 @@
371371
zSafe[k] = 0;
372372
if( j<i ){
373373
blob_append(&out, zSafe + j, i-j);
374374
j = i;
375375
}
376
- wiki_resolve_hyperlink(&out, WIKI_NOBADLINKS|WIKI_TARGET_BLANK,
376
+ blob_append_char(&out, '[');
377
+ wiki_resolve_hyperlink(&out,
378
+ WIKI_NOBADLINKS|WIKI_TARGET_BLANK|WIKI_NOBRACKET,
377379
zSafe+i+1, zClose, sizeof(zClose), zSafe, 0);
378380
zSafe[k] = ']';
379381
j++;
380382
blob_append(&out, zSafe + j, k - j);
381383
blob_append(&out, zClose, -1);
384
+ blob_append_char(&out, ']');
382385
i = k;
383386
j = k+1;
384387
continue;
385388
}
386389
}else if( zSafe[i]=='h'
@@ -498,11 +501,11 @@
498501
**
499502
** The "msgid" values will be in increasing order.
500503
**
501504
** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero.
502505
**
503
-** The "lmtime" value might be known, in which case it is omitted.
506
+** The "lmtime" value might be unknown, in which case it is omitted.
504507
**
505508
** The messages are ordered oldest first unless "before" is provided, in which
506509
** case they are sorted newest first (to facilitate the client-side UI update).
507510
**
508511
** As a special case, if this routine encounters an error, e.g. the user's
@@ -598,11 +601,11 @@
598601
blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11);
599602
if( zLMtime && zLMtime[0] ){
600603
blob_appendf(&json, "\"lmtime\":%!j,", zLMtime);
601604
}
602605
blob_appendf(&json, "\"xfrom\":%!j,", zFrom);
603
- blob_appendf(&json, "\"uclr\":%!j,", hash_color(zFrom));
606
+ blob_appendf(&json, "\"uclr\":%!j,", user_color(zFrom));
604607
605608
zMsg = chat_format_to_html(zRawMsg ? zRawMsg : "");
606609
blob_appendf(&json, "\"xmsg\":%!j,", zMsg);
607610
fossil_free(zMsg);
608611
609612
--- src/chat.c
+++ src/chat.c
@@ -371,16 +371,19 @@
371 zSafe[k] = 0;
372 if( j<i ){
373 blob_append(&out, zSafe + j, i-j);
374 j = i;
375 }
376 wiki_resolve_hyperlink(&out, WIKI_NOBADLINKS|WIKI_TARGET_BLANK,
 
 
377 zSafe+i+1, zClose, sizeof(zClose), zSafe, 0);
378 zSafe[k] = ']';
379 j++;
380 blob_append(&out, zSafe + j, k - j);
381 blob_append(&out, zClose, -1);
 
382 i = k;
383 j = k+1;
384 continue;
385 }
386 }else if( zSafe[i]=='h'
@@ -498,11 +501,11 @@
498 **
499 ** The "msgid" values will be in increasing order.
500 **
501 ** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero.
502 **
503 ** The "lmtime" value might be known, in which case it is omitted.
504 **
505 ** The messages are ordered oldest first unless "before" is provided, in which
506 ** case they are sorted newest first (to facilitate the client-side UI update).
507 **
508 ** As a special case, if this routine encounters an error, e.g. the user's
@@ -598,11 +601,11 @@
598 blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11);
599 if( zLMtime && zLMtime[0] ){
600 blob_appendf(&json, "\"lmtime\":%!j,", zLMtime);
601 }
602 blob_appendf(&json, "\"xfrom\":%!j,", zFrom);
603 blob_appendf(&json, "\"uclr\":%!j,", hash_color(zFrom));
604
605 zMsg = chat_format_to_html(zRawMsg ? zRawMsg : "");
606 blob_appendf(&json, "\"xmsg\":%!j,", zMsg);
607 fossil_free(zMsg);
608
609
--- src/chat.c
+++ src/chat.c
@@ -371,16 +371,19 @@
371 zSafe[k] = 0;
372 if( j<i ){
373 blob_append(&out, zSafe + j, i-j);
374 j = i;
375 }
376 blob_append_char(&out, '[');
377 wiki_resolve_hyperlink(&out,
378 WIKI_NOBADLINKS|WIKI_TARGET_BLANK|WIKI_NOBRACKET,
379 zSafe+i+1, zClose, sizeof(zClose), zSafe, 0);
380 zSafe[k] = ']';
381 j++;
382 blob_append(&out, zSafe + j, k - j);
383 blob_append(&out, zClose, -1);
384 blob_append_char(&out, ']');
385 i = k;
386 j = k+1;
387 continue;
388 }
389 }else if( zSafe[i]=='h'
@@ -498,11 +501,11 @@
501 **
502 ** The "msgid" values will be in increasing order.
503 **
504 ** The "mdel" will only exist if "xmsg" is an empty string and "fsize" is zero.
505 **
506 ** The "lmtime" value might be unknown, in which case it is omitted.
507 **
508 ** The messages are ordered oldest first unless "before" is provided, in which
509 ** case they are sorted newest first (to facilitate the client-side UI update).
510 **
511 ** As a special case, if this routine encounters an error, e.g. the user's
@@ -598,11 +601,11 @@
601 blob_appendf(&json, "\"mtime\":\"%.10sT%sZ\",", zDate, zDate+11);
602 if( zLMtime && zLMtime[0] ){
603 blob_appendf(&json, "\"lmtime\":%!j,", zLMtime);
604 }
605 blob_appendf(&json, "\"xfrom\":%!j,", zFrom);
606 blob_appendf(&json, "\"uclr\":%!j,", user_color(zFrom));
607
608 zMsg = chat_format_to_html(zRawMsg ? zRawMsg : "");
609 blob_appendf(&json, "\"xmsg\":%!j,", zMsg);
610 fossil_free(zMsg);
611
612
+33 -18
--- src/chat.js
+++ src/chat.js
@@ -584,14 +584,39 @@
584584
this.e.tab.setAttribute('role', 'button');
585585
if(arguments.length){
586586
this.setMessage(arguments[0]);
587587
}
588588
};
589
+ /* Left-zero-pad a number to at least 2 digits */
590
+ const pad2 = (x)=>(''+x).length>1 ? x : '0'+x;
591
+ const dowMap = {
592
+ /* Map of Date.getDay() values to weekday names. */
593
+ 0: "Sunday", 1: "Monday", 2: "Tuesday",
594
+ 3: "Wednesday", 4: "Thursday", 5: "Friday",
595
+ 6: "Saturday"
596
+ };
597
+ /* Given a Date, returns the timestamp string used in the
598
+ "tab" part of message widgets. */
589599
const theTime = function(d){
590
- return [d.getHours(),":",
591
- (d.getMinutes()+100).toString().slice(1,3)
592
- ].join('');
600
+ return [
601
+ //d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/),
602
+ //'-',pad2(d.getDate()), ' ',
603
+ d.getHours(),":",
604
+ (d.getMinutes()+100).toString().slice(1,3),
605
+ ' ', dowMap[d.getDay()]
606
+ ].join('');
607
+ };
608
+ /** Returns the local time string of Date object d, defaulting
609
+ to the current time. */
610
+ const localTimeString = function ff(d){
611
+ d || (d = new Date());
612
+ return [
613
+ d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/),
614
+ '-',pad2(d.getDate()),
615
+ ' ',pad2(d.getHours()),':',pad2(d.getMinutes()),
616
+ ':',pad2(d.getSeconds())
617
+ ].join('');
593618
};
594619
cf.prototype = {
595620
setLabel: function(label){
596621
return this;
597622
},
@@ -696,10 +721,15 @@
696721
D.append(D.span(), localTime8601(
697722
new Date(eMsg.dataset.lmtime)
698723
).replace('T',' ')," ",xfrom," time"));
699724
}
700725
}else{
726
+ /* This might not be necessary any more: it was
727
+ initially caused by Safari being stricter than
728
+ other browsers on its time string input, and that
729
+ has since been resolved by emiting a stricter
730
+ format. */
701731
// Date doesn't work, so dumb it down...
702732
D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu"));
703733
}
704734
const toolbar = D.addClass(D.div(), 'toolbar');
705735
D.append(this.e, toolbar);
@@ -891,25 +921,10 @@
891921
e.preventDefault();
892922
Chat.submitMessage();
893923
return false;
894924
});
895925
896
- /* Returns a new TEXT node with the given text content. */
897
- /** Returns the local time string of Date object d, defaulting
898
- to the current time. */
899
- const localTimeString = function ff(d){
900
- if(!ff.pad){
901
- ff.pad = (x)=>(''+x).length>1 ? x : '0'+x;
902
- }
903
- d || (d = new Date());
904
- return [
905
- d.getFullYear(),'-',ff.pad(d.getMonth()+1/*sigh*/),
906
- '-',ff.pad(d.getDate()),
907
- ' ',ff.pad(d.getHours()),':',ff.pad(d.getMinutes()),
908
- ':',ff.pad(d.getSeconds())
909
- ].join('');
910
- };
911926
/* Returns an almost-ISO8601 form of Date object d. */
912927
const iso8601ish = function(d){
913928
return d.toISOString()
914929
.replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu');
915930
};
916931
--- src/chat.js
+++ src/chat.js
@@ -584,14 +584,39 @@
584 this.e.tab.setAttribute('role', 'button');
585 if(arguments.length){
586 this.setMessage(arguments[0]);
587 }
588 };
 
 
 
 
 
 
 
 
 
 
589 const theTime = function(d){
590 return [d.getHours(),":",
591 (d.getMinutes()+100).toString().slice(1,3)
592 ].join('');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593 };
594 cf.prototype = {
595 setLabel: function(label){
596 return this;
597 },
@@ -696,10 +721,15 @@
696 D.append(D.span(), localTime8601(
697 new Date(eMsg.dataset.lmtime)
698 ).replace('T',' ')," ",xfrom," time"));
699 }
700 }else{
 
 
 
 
 
701 // Date doesn't work, so dumb it down...
702 D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu"));
703 }
704 const toolbar = D.addClass(D.div(), 'toolbar');
705 D.append(this.e, toolbar);
@@ -891,25 +921,10 @@
891 e.preventDefault();
892 Chat.submitMessage();
893 return false;
894 });
895
896 /* Returns a new TEXT node with the given text content. */
897 /** Returns the local time string of Date object d, defaulting
898 to the current time. */
899 const localTimeString = function ff(d){
900 if(!ff.pad){
901 ff.pad = (x)=>(''+x).length>1 ? x : '0'+x;
902 }
903 d || (d = new Date());
904 return [
905 d.getFullYear(),'-',ff.pad(d.getMonth()+1/*sigh*/),
906 '-',ff.pad(d.getDate()),
907 ' ',ff.pad(d.getHours()),':',ff.pad(d.getMinutes()),
908 ':',ff.pad(d.getSeconds())
909 ].join('');
910 };
911 /* Returns an almost-ISO8601 form of Date object d. */
912 const iso8601ish = function(d){
913 return d.toISOString()
914 .replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu');
915 };
916
--- src/chat.js
+++ src/chat.js
@@ -584,14 +584,39 @@
584 this.e.tab.setAttribute('role', 'button');
585 if(arguments.length){
586 this.setMessage(arguments[0]);
587 }
588 };
589 /* Left-zero-pad a number to at least 2 digits */
590 const pad2 = (x)=>(''+x).length>1 ? x : '0'+x;
591 const dowMap = {
592 /* Map of Date.getDay() values to weekday names. */
593 0: "Sunday", 1: "Monday", 2: "Tuesday",
594 3: "Wednesday", 4: "Thursday", 5: "Friday",
595 6: "Saturday"
596 };
597 /* Given a Date, returns the timestamp string used in the
598 "tab" part of message widgets. */
599 const theTime = function(d){
600 return [
601 //d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/),
602 //'-',pad2(d.getDate()), ' ',
603 d.getHours(),":",
604 (d.getMinutes()+100).toString().slice(1,3),
605 ' ', dowMap[d.getDay()]
606 ].join('');
607 };
608 /** Returns the local time string of Date object d, defaulting
609 to the current time. */
610 const localTimeString = function ff(d){
611 d || (d = new Date());
612 return [
613 d.getFullYear(),'-',pad2(d.getMonth()+1/*sigh*/),
614 '-',pad2(d.getDate()),
615 ' ',pad2(d.getHours()),':',pad2(d.getMinutes()),
616 ':',pad2(d.getSeconds())
617 ].join('');
618 };
619 cf.prototype = {
620 setLabel: function(label){
621 return this;
622 },
@@ -696,10 +721,15 @@
721 D.append(D.span(), localTime8601(
722 new Date(eMsg.dataset.lmtime)
723 ).replace('T',' ')," ",xfrom," time"));
724 }
725 }else{
726 /* This might not be necessary any more: it was
727 initially caused by Safari being stricter than
728 other browsers on its time string input, and that
729 has since been resolved by emiting a stricter
730 format. */
731 // Date doesn't work, so dumb it down...
732 D.append(this.e, D.append(D.span(), eMsg.dataset.timestamp," zulu"));
733 }
734 const toolbar = D.addClass(D.div(), 'toolbar');
735 D.append(this.e, toolbar);
@@ -891,25 +921,10 @@
921 e.preventDefault();
922 Chat.submitMessage();
923 return false;
924 });
925
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
926 /* Returns an almost-ISO8601 form of Date object d. */
927 const iso8601ish = function(d){
928 return d.toISOString()
929 .replace('T',' ').replace(/\.\d+/,'').replace('Z', ' zulu');
930 };
931
+59 -12
--- src/checkin.c
+++ src/checkin.c
@@ -1209,17 +1209,24 @@
12091209
#if defined(_WIN32)
12101210
blob_add_cr(pPrompt);
12111211
#endif
12121212
if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile);
12131213
if( zEditor ){
1214
+ char *z, *zEnd;
12141215
zCmd = mprintf("%s %$", zEditor, zFile);
12151216
fossil_print("%s\n", zCmd);
12161217
if( fossil_system(zCmd) ){
12171218
fossil_fatal("editor aborted: \"%s\"", zCmd);
12181219
}
1219
-
12201220
blob_read_from_file(&reply, zFile, ExtFILE);
1221
+ z = blob_str(&reply);
1222
+ zEnd = strstr(z, "##########");
1223
+ if( zEnd ){
1224
+ /* Truncate the reply at any sequence of 10 or more # characters.
1225
+ ** The diff for the -v option occurs after such a sequence. */
1226
+ blob_resize(&reply, (int)(zEnd - z));
1227
+ }
12211228
}else{
12221229
char zIn[300];
12231230
blob_zero(&reply);
12241231
while( fgets(zIn, sizeof(zIn), stdin)!=0 ){
12251232
if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){
@@ -1270,11 +1277,12 @@
12701277
*/
12711278
static void prepare_commit_comment(
12721279
Blob *pComment,
12731280
char *zInit,
12741281
CheckinInfo *p,
1275
- int parent_rid
1282
+ int parent_rid,
1283
+ int dryRunFlag
12761284
){
12771285
Blob prompt;
12781286
#if defined(_WIN32) || defined(__CYGWIN__)
12791287
int bomSize;
12801288
const unsigned char *bom = get_utf8_bom(&bomSize);
@@ -1289,10 +1297,14 @@
12891297
"\n"
12901298
"# Enter a commit message for this check-in."
12911299
" Lines beginning with # are ignored.\n"
12921300
"#\n", -1
12931301
);
1302
+ if( dryRunFlag ){
1303
+ blob_appendf(&prompt, "# DRY-RUN: This is a test commit. No changes "
1304
+ "will be made to the repository\n#\n");
1305
+ }
12941306
blob_appendf(&prompt, "# user: %s\n",
12951307
p->zUserOvrd ? p->zUserOvrd : login_name());
12961308
if( p->zBranch && p->zBranch[0] ){
12971309
blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch);
12981310
}else{
@@ -1324,10 +1336,44 @@
13241336
blob_append(&prompt,
13251337
"#\n"
13261338
"# All merged-in branches will be closed due to the --integrate flag\n"
13271339
"#\n", -1
13281340
);
1341
+ }
1342
+ if( p->verboseFlag ){
1343
+ blob_appendf(&prompt,
1344
+ "#\n%.78c\n"
1345
+ "# The following diff is excluded from the commit message:\n#\n",
1346
+ '#'
1347
+ );
1348
+ if( g.aCommitFile ){
1349
+ FileDirList *diffFiles;
1350
+ int i;
1351
+ diffFiles = fossil_malloc_zero((g.argc-1) * sizeof(*diffFiles));
1352
+ for( i=0; g.aCommitFile[i]!=0; ++i ){
1353
+ diffFiles[i].zName = db_text(0,
1354
+ "SELECT pathname FROM vfile WHERE id=%d", g.aCommitFile[i]);
1355
+ if( fossil_strcmp(diffFiles[i].zName, "." )==0 ){
1356
+ diffFiles[0].zName[0] = '.';
1357
+ diffFiles[0].zName[1] = 0;
1358
+ break;
1359
+ }
1360
+ diffFiles[i].nName = strlen(diffFiles[i].zName);
1361
+ diffFiles[i].nUsed = 0;
1362
+ }
1363
+ diff_against_disk(0, 0, diff_get_binary_glob(),
1364
+ db_get_boolean("diff-binary", 1),
1365
+ DIFF_VERBOSE, diffFiles, &prompt);
1366
+ for( i=0; diffFiles[i].zName; ++i ){
1367
+ fossil_free(diffFiles[i].zName);
1368
+ }
1369
+ fossil_free(diffFiles);
1370
+ }else{
1371
+ diff_against_disk(0, 0, diff_get_binary_glob(),
1372
+ db_get_boolean("diff-binary", 1),
1373
+ DIFF_VERBOSE, 0, &prompt);
1374
+ }
13291375
}
13301376
prompt_for_user_comment(pComment, &prompt);
13311377
blob_reset(&prompt);
13321378
}
13331379
@@ -1543,10 +1589,11 @@
15431589
Blob *pComment; /* Check-in comment text */
15441590
const char *zMimetype; /* Mimetype of check-in command. May be NULL */
15451591
int verifyDate; /* Verify that child is younger */
15461592
int closeFlag; /* Close the branch being committed */
15471593
int integrateFlag; /* Close merged-in branches */
1594
+ int verboseFlag; /* Show diff in editor for check-in comment */
15481595
Blob *pCksum; /* Repository checksum. May be 0 */
15491596
const char *zDateOvrd; /* Date override. If 0 then use 'now' */
15501597
const char *zUserOvrd; /* User override. If 0 then use login_name() */
15511598
const char *zBranch; /* Branch name. May be 0 */
15521599
const char *zColor; /* One-time background color. May be 0 */
@@ -2090,10 +2137,11 @@
20902137
** --integrate close all merged-in branches
20912138
** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment
20922139
** -M|--message-file FILE read the commit comment from given file
20932140
** --mimetype MIMETYPE mimetype of check-in comment
20942141
** -n|--dry-run If given, display instead of run actions
2142
+** -v|--verbose Show a diff in the commit message prompt
20952143
** --no-prompt This option disables prompting the user for
20962144
** input and assumes an answer of 'No' for every
20972145
** question.
20982146
** --no-warnings omit all warnings about file contents
20992147
** --no-verify do not run before-commit hooks
@@ -2194,10 +2242,11 @@
21942242
sCiInfo.zColor = find_option("bgcolor",0,1);
21952243
sCiInfo.zBrClr = find_option("branchcolor",0,1);
21962244
sCiInfo.closeFlag = find_option("close",0,0)!=0;
21972245
sCiInfo.integrateFlag = find_option("integrate",0,0)!=0;
21982246
sCiInfo.zMimetype = find_option("mimetype",0,1);
2247
+ sCiInfo.verboseFlag = find_option("verbose", "v", 0)!=0;
21992248
while( (zTag = find_option("tag",0,1))!=0 ){
22002249
if( zTag[0]==0 ) continue;
22012250
sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag,
22022251
sizeof(char*)*(nTag+2));
22032252
sCiInfo.azTag[nTag++] = zTag;
@@ -2441,21 +2490,19 @@
24412490
blob_append(&comment, zComment, -1);
24422491
}else if( zComFile ){
24432492
blob_zero(&comment);
24442493
blob_read_from_file(&comment, zComFile, ExtFILE);
24452494
blob_to_utf8_no_bom(&comment, 1);
2446
- }else if( dryRunFlag ){
2447
- blob_zero(&comment);
24482495
}else if( !noPrompt ){
24492496
char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'");
2450
- prepare_commit_comment(&comment, zInit, &sCiInfo, vid);
2497
+ prepare_commit_comment(&comment, zInit, &sCiInfo, vid, dryRunFlag);
24512498
if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
24522499
prompt_user("unchanged check-in comment. continue (y/N)? ", &ans);
24532500
cReply = blob_str(&ans)[0];
24542501
blob_reset(&ans);
24552502
if( cReply!='y' && cReply!='Y' ){
2456
- fossil_exit(1);
2503
+ fossil_fatal("Commit aborted.");
24572504
}
24582505
}
24592506
free(zInit);
24602507
db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
24612508
db_end_transaction(0);
@@ -2464,14 +2511,16 @@
24642511
/* Do another auto-pull, renewing the check-in lock. Then set
24652512
** bRecheck so that we loop back above to verify that the check-in
24662513
** is still not against a closed branch and still won't fork. */
24672514
int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK;
24682515
if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
2469
- fossil_exit(1);
2516
+ fossil_fatal("Auto-pull failed. Commit aborted.");
24702517
}
24712518
bRecheck = 1;
24722519
}
2520
+ }else{
2521
+ blob_zero(&comment);
24732522
}
24742523
}while( bRecheck );
24752524
24762525
if( blob_size(&comment)==0 ){
24772526
if( !dryRunFlag ){
@@ -2478,15 +2527,14 @@
24782527
if( !noPrompt ){
24792528
prompt_user("empty check-in comment. continue (y/N)? ", &ans);
24802529
cReply = blob_str(&ans)[0];
24812530
blob_reset(&ans);
24822531
}else{
2483
- fossil_print("Abandoning commit due to empty check-in comment\n");
24842532
cReply = 'N';
24852533
}
24862534
if( cReply!='y' && cReply!='Y' ){
2487
- fossil_exit(1);
2535
+ fossil_fatal("Abandoning commit due to empty check-in comment\n");
24882536
}
24892537
}
24902538
}
24912539
24922540
if( !noVerify && hook_exists("before-commit") ){
@@ -2631,15 +2679,14 @@
26312679
if( !noPrompt ){
26322680
prompt_user("unable to sign manifest. continue (y/N)? ", &ans);
26332681
cReply = blob_str(&ans)[0];
26342682
blob_reset(&ans);
26352683
}else{
2636
- fossil_print("Abandoning commit due to manifest signing failure\n");
26372684
cReply = 'N';
26382685
}
26392686
if( cReply!='y' && cReply!='Y' ){
2640
- fossil_exit(1);
2687
+ fossil_fatal("Abandoning commit due to manifest signing failure\n");
26412688
}
26422689
}
26432690
26442691
/* If the -n|--dry-run option is specified, output the manifest file
26452692
** and rollback the transaction.
@@ -2757,11 +2804,11 @@
27572804
db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'");
27582805
db_multi_exec("PRAGMA repository.application_id=252006673;");
27592806
db_multi_exec("PRAGMA localdb.application_id=252006674;");
27602807
if( dryRunFlag ){
27612808
db_end_transaction(1);
2762
- exit(1);
2809
+ return;
27632810
}
27642811
db_end_transaction(0);
27652812
27662813
if( outputManifest & MFESTFLG_TAGS ){
27672814
Blob tagslist;
27682815
--- src/checkin.c
+++ src/checkin.c
@@ -1209,17 +1209,24 @@
1209 #if defined(_WIN32)
1210 blob_add_cr(pPrompt);
1211 #endif
1212 if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile);
1213 if( zEditor ){
 
1214 zCmd = mprintf("%s %$", zEditor, zFile);
1215 fossil_print("%s\n", zCmd);
1216 if( fossil_system(zCmd) ){
1217 fossil_fatal("editor aborted: \"%s\"", zCmd);
1218 }
1219
1220 blob_read_from_file(&reply, zFile, ExtFILE);
 
 
 
 
 
 
 
1221 }else{
1222 char zIn[300];
1223 blob_zero(&reply);
1224 while( fgets(zIn, sizeof(zIn), stdin)!=0 ){
1225 if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){
@@ -1270,11 +1277,12 @@
1270 */
1271 static void prepare_commit_comment(
1272 Blob *pComment,
1273 char *zInit,
1274 CheckinInfo *p,
1275 int parent_rid
 
1276 ){
1277 Blob prompt;
1278 #if defined(_WIN32) || defined(__CYGWIN__)
1279 int bomSize;
1280 const unsigned char *bom = get_utf8_bom(&bomSize);
@@ -1289,10 +1297,14 @@
1289 "\n"
1290 "# Enter a commit message for this check-in."
1291 " Lines beginning with # are ignored.\n"
1292 "#\n", -1
1293 );
 
 
 
 
1294 blob_appendf(&prompt, "# user: %s\n",
1295 p->zUserOvrd ? p->zUserOvrd : login_name());
1296 if( p->zBranch && p->zBranch[0] ){
1297 blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch);
1298 }else{
@@ -1324,10 +1336,44 @@
1324 blob_append(&prompt,
1325 "#\n"
1326 "# All merged-in branches will be closed due to the --integrate flag\n"
1327 "#\n", -1
1328 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1329 }
1330 prompt_for_user_comment(pComment, &prompt);
1331 blob_reset(&prompt);
1332 }
1333
@@ -1543,10 +1589,11 @@
1543 Blob *pComment; /* Check-in comment text */
1544 const char *zMimetype; /* Mimetype of check-in command. May be NULL */
1545 int verifyDate; /* Verify that child is younger */
1546 int closeFlag; /* Close the branch being committed */
1547 int integrateFlag; /* Close merged-in branches */
 
1548 Blob *pCksum; /* Repository checksum. May be 0 */
1549 const char *zDateOvrd; /* Date override. If 0 then use 'now' */
1550 const char *zUserOvrd; /* User override. If 0 then use login_name() */
1551 const char *zBranch; /* Branch name. May be 0 */
1552 const char *zColor; /* One-time background color. May be 0 */
@@ -2090,10 +2137,11 @@
2090 ** --integrate close all merged-in branches
2091 ** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment
2092 ** -M|--message-file FILE read the commit comment from given file
2093 ** --mimetype MIMETYPE mimetype of check-in comment
2094 ** -n|--dry-run If given, display instead of run actions
 
2095 ** --no-prompt This option disables prompting the user for
2096 ** input and assumes an answer of 'No' for every
2097 ** question.
2098 ** --no-warnings omit all warnings about file contents
2099 ** --no-verify do not run before-commit hooks
@@ -2194,10 +2242,11 @@
2194 sCiInfo.zColor = find_option("bgcolor",0,1);
2195 sCiInfo.zBrClr = find_option("branchcolor",0,1);
2196 sCiInfo.closeFlag = find_option("close",0,0)!=0;
2197 sCiInfo.integrateFlag = find_option("integrate",0,0)!=0;
2198 sCiInfo.zMimetype = find_option("mimetype",0,1);
 
2199 while( (zTag = find_option("tag",0,1))!=0 ){
2200 if( zTag[0]==0 ) continue;
2201 sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag,
2202 sizeof(char*)*(nTag+2));
2203 sCiInfo.azTag[nTag++] = zTag;
@@ -2441,21 +2490,19 @@
2441 blob_append(&comment, zComment, -1);
2442 }else if( zComFile ){
2443 blob_zero(&comment);
2444 blob_read_from_file(&comment, zComFile, ExtFILE);
2445 blob_to_utf8_no_bom(&comment, 1);
2446 }else if( dryRunFlag ){
2447 blob_zero(&comment);
2448 }else if( !noPrompt ){
2449 char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'");
2450 prepare_commit_comment(&comment, zInit, &sCiInfo, vid);
2451 if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
2452 prompt_user("unchanged check-in comment. continue (y/N)? ", &ans);
2453 cReply = blob_str(&ans)[0];
2454 blob_reset(&ans);
2455 if( cReply!='y' && cReply!='Y' ){
2456 fossil_exit(1);
2457 }
2458 }
2459 free(zInit);
2460 db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
2461 db_end_transaction(0);
@@ -2464,14 +2511,16 @@
2464 /* Do another auto-pull, renewing the check-in lock. Then set
2465 ** bRecheck so that we loop back above to verify that the check-in
2466 ** is still not against a closed branch and still won't fork. */
2467 int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK;
2468 if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
2469 fossil_exit(1);
2470 }
2471 bRecheck = 1;
2472 }
 
 
2473 }
2474 }while( bRecheck );
2475
2476 if( blob_size(&comment)==0 ){
2477 if( !dryRunFlag ){
@@ -2478,15 +2527,14 @@
2478 if( !noPrompt ){
2479 prompt_user("empty check-in comment. continue (y/N)? ", &ans);
2480 cReply = blob_str(&ans)[0];
2481 blob_reset(&ans);
2482 }else{
2483 fossil_print("Abandoning commit due to empty check-in comment\n");
2484 cReply = 'N';
2485 }
2486 if( cReply!='y' && cReply!='Y' ){
2487 fossil_exit(1);
2488 }
2489 }
2490 }
2491
2492 if( !noVerify && hook_exists("before-commit") ){
@@ -2631,15 +2679,14 @@
2631 if( !noPrompt ){
2632 prompt_user("unable to sign manifest. continue (y/N)? ", &ans);
2633 cReply = blob_str(&ans)[0];
2634 blob_reset(&ans);
2635 }else{
2636 fossil_print("Abandoning commit due to manifest signing failure\n");
2637 cReply = 'N';
2638 }
2639 if( cReply!='y' && cReply!='Y' ){
2640 fossil_exit(1);
2641 }
2642 }
2643
2644 /* If the -n|--dry-run option is specified, output the manifest file
2645 ** and rollback the transaction.
@@ -2757,11 +2804,11 @@
2757 db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'");
2758 db_multi_exec("PRAGMA repository.application_id=252006673;");
2759 db_multi_exec("PRAGMA localdb.application_id=252006674;");
2760 if( dryRunFlag ){
2761 db_end_transaction(1);
2762 exit(1);
2763 }
2764 db_end_transaction(0);
2765
2766 if( outputManifest & MFESTFLG_TAGS ){
2767 Blob tagslist;
2768
--- src/checkin.c
+++ src/checkin.c
@@ -1209,17 +1209,24 @@
1209 #if defined(_WIN32)
1210 blob_add_cr(pPrompt);
1211 #endif
1212 if( blob_size(pPrompt)>0 ) blob_write_to_file(pPrompt, zFile);
1213 if( zEditor ){
1214 char *z, *zEnd;
1215 zCmd = mprintf("%s %$", zEditor, zFile);
1216 fossil_print("%s\n", zCmd);
1217 if( fossil_system(zCmd) ){
1218 fossil_fatal("editor aborted: \"%s\"", zCmd);
1219 }
 
1220 blob_read_from_file(&reply, zFile, ExtFILE);
1221 z = blob_str(&reply);
1222 zEnd = strstr(z, "##########");
1223 if( zEnd ){
1224 /* Truncate the reply at any sequence of 10 or more # characters.
1225 ** The diff for the -v option occurs after such a sequence. */
1226 blob_resize(&reply, (int)(zEnd - z));
1227 }
1228 }else{
1229 char zIn[300];
1230 blob_zero(&reply);
1231 while( fgets(zIn, sizeof(zIn), stdin)!=0 ){
1232 if( zIn[0]=='.' && (zIn[1]==0 || zIn[1]=='\r' || zIn[1]=='\n') ){
@@ -1270,11 +1277,12 @@
1277 */
1278 static void prepare_commit_comment(
1279 Blob *pComment,
1280 char *zInit,
1281 CheckinInfo *p,
1282 int parent_rid,
1283 int dryRunFlag
1284 ){
1285 Blob prompt;
1286 #if defined(_WIN32) || defined(__CYGWIN__)
1287 int bomSize;
1288 const unsigned char *bom = get_utf8_bom(&bomSize);
@@ -1289,10 +1297,14 @@
1297 "\n"
1298 "# Enter a commit message for this check-in."
1299 " Lines beginning with # are ignored.\n"
1300 "#\n", -1
1301 );
1302 if( dryRunFlag ){
1303 blob_appendf(&prompt, "# DRY-RUN: This is a test commit. No changes "
1304 "will be made to the repository\n#\n");
1305 }
1306 blob_appendf(&prompt, "# user: %s\n",
1307 p->zUserOvrd ? p->zUserOvrd : login_name());
1308 if( p->zBranch && p->zBranch[0] ){
1309 blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch);
1310 }else{
@@ -1324,10 +1336,44 @@
1336 blob_append(&prompt,
1337 "#\n"
1338 "# All merged-in branches will be closed due to the --integrate flag\n"
1339 "#\n", -1
1340 );
1341 }
1342 if( p->verboseFlag ){
1343 blob_appendf(&prompt,
1344 "#\n%.78c\n"
1345 "# The following diff is excluded from the commit message:\n#\n",
1346 '#'
1347 );
1348 if( g.aCommitFile ){
1349 FileDirList *diffFiles;
1350 int i;
1351 diffFiles = fossil_malloc_zero((g.argc-1) * sizeof(*diffFiles));
1352 for( i=0; g.aCommitFile[i]!=0; ++i ){
1353 diffFiles[i].zName = db_text(0,
1354 "SELECT pathname FROM vfile WHERE id=%d", g.aCommitFile[i]);
1355 if( fossil_strcmp(diffFiles[i].zName, "." )==0 ){
1356 diffFiles[0].zName[0] = '.';
1357 diffFiles[0].zName[1] = 0;
1358 break;
1359 }
1360 diffFiles[i].nName = strlen(diffFiles[i].zName);
1361 diffFiles[i].nUsed = 0;
1362 }
1363 diff_against_disk(0, 0, diff_get_binary_glob(),
1364 db_get_boolean("diff-binary", 1),
1365 DIFF_VERBOSE, diffFiles, &prompt);
1366 for( i=0; diffFiles[i].zName; ++i ){
1367 fossil_free(diffFiles[i].zName);
1368 }
1369 fossil_free(diffFiles);
1370 }else{
1371 diff_against_disk(0, 0, diff_get_binary_glob(),
1372 db_get_boolean("diff-binary", 1),
1373 DIFF_VERBOSE, 0, &prompt);
1374 }
1375 }
1376 prompt_for_user_comment(pComment, &prompt);
1377 blob_reset(&prompt);
1378 }
1379
@@ -1543,10 +1589,11 @@
1589 Blob *pComment; /* Check-in comment text */
1590 const char *zMimetype; /* Mimetype of check-in command. May be NULL */
1591 int verifyDate; /* Verify that child is younger */
1592 int closeFlag; /* Close the branch being committed */
1593 int integrateFlag; /* Close merged-in branches */
1594 int verboseFlag; /* Show diff in editor for check-in comment */
1595 Blob *pCksum; /* Repository checksum. May be 0 */
1596 const char *zDateOvrd; /* Date override. If 0 then use 'now' */
1597 const char *zUserOvrd; /* User override. If 0 then use login_name() */
1598 const char *zBranch; /* Branch name. May be 0 */
1599 const char *zColor; /* One-time background color. May be 0 */
@@ -2090,10 +2137,11 @@
2137 ** --integrate close all merged-in branches
2138 ** -m|--comment COMMENT-TEXT use COMMENT-TEXT as commit comment
2139 ** -M|--message-file FILE read the commit comment from given file
2140 ** --mimetype MIMETYPE mimetype of check-in comment
2141 ** -n|--dry-run If given, display instead of run actions
2142 ** -v|--verbose Show a diff in the commit message prompt
2143 ** --no-prompt This option disables prompting the user for
2144 ** input and assumes an answer of 'No' for every
2145 ** question.
2146 ** --no-warnings omit all warnings about file contents
2147 ** --no-verify do not run before-commit hooks
@@ -2194,10 +2242,11 @@
2242 sCiInfo.zColor = find_option("bgcolor",0,1);
2243 sCiInfo.zBrClr = find_option("branchcolor",0,1);
2244 sCiInfo.closeFlag = find_option("close",0,0)!=0;
2245 sCiInfo.integrateFlag = find_option("integrate",0,0)!=0;
2246 sCiInfo.zMimetype = find_option("mimetype",0,1);
2247 sCiInfo.verboseFlag = find_option("verbose", "v", 0)!=0;
2248 while( (zTag = find_option("tag",0,1))!=0 ){
2249 if( zTag[0]==0 ) continue;
2250 sCiInfo.azTag = fossil_realloc((void*)sCiInfo.azTag,
2251 sizeof(char*)*(nTag+2));
2252 sCiInfo.azTag[nTag++] = zTag;
@@ -2441,21 +2490,19 @@
2490 blob_append(&comment, zComment, -1);
2491 }else if( zComFile ){
2492 blob_zero(&comment);
2493 blob_read_from_file(&comment, zComFile, ExtFILE);
2494 blob_to_utf8_no_bom(&comment, 1);
 
 
2495 }else if( !noPrompt ){
2496 char *zInit = db_text(0,"SELECT value FROM vvar WHERE name='ci-comment'");
2497 prepare_commit_comment(&comment, zInit, &sCiInfo, vid, dryRunFlag);
2498 if( zInit && zInit[0] && fossil_strcmp(zInit, blob_str(&comment))==0 ){
2499 prompt_user("unchanged check-in comment. continue (y/N)? ", &ans);
2500 cReply = blob_str(&ans)[0];
2501 blob_reset(&ans);
2502 if( cReply!='y' && cReply!='Y' ){
2503 fossil_fatal("Commit aborted.");
2504 }
2505 }
2506 free(zInit);
2507 db_multi_exec("REPLACE INTO vvar VALUES('ci-comment',%B)", &comment);
2508 db_end_transaction(0);
@@ -2464,14 +2511,16 @@
2511 /* Do another auto-pull, renewing the check-in lock. Then set
2512 ** bRecheck so that we loop back above to verify that the check-in
2513 ** is still not against a closed branch and still won't fork. */
2514 int syncFlags = SYNC_PULL|SYNC_CKIN_LOCK;
2515 if( autosync_loop(syncFlags, db_get_int("autosync-tries", 1), 1) ){
2516 fossil_fatal("Auto-pull failed. Commit aborted.");
2517 }
2518 bRecheck = 1;
2519 }
2520 }else{
2521 blob_zero(&comment);
2522 }
2523 }while( bRecheck );
2524
2525 if( blob_size(&comment)==0 ){
2526 if( !dryRunFlag ){
@@ -2478,15 +2527,14 @@
2527 if( !noPrompt ){
2528 prompt_user("empty check-in comment. continue (y/N)? ", &ans);
2529 cReply = blob_str(&ans)[0];
2530 blob_reset(&ans);
2531 }else{
 
2532 cReply = 'N';
2533 }
2534 if( cReply!='y' && cReply!='Y' ){
2535 fossil_fatal("Abandoning commit due to empty check-in comment\n");
2536 }
2537 }
2538 }
2539
2540 if( !noVerify && hook_exists("before-commit") ){
@@ -2631,15 +2679,14 @@
2679 if( !noPrompt ){
2680 prompt_user("unable to sign manifest. continue (y/N)? ", &ans);
2681 cReply = blob_str(&ans)[0];
2682 blob_reset(&ans);
2683 }else{
 
2684 cReply = 'N';
2685 }
2686 if( cReply!='y' && cReply!='Y' ){
2687 fossil_fatal("Abandoning commit due to manifest signing failure\n");
2688 }
2689 }
2690
2691 /* If the -n|--dry-run option is specified, output the manifest file
2692 ** and rollback the transaction.
@@ -2757,11 +2804,11 @@
2804 db_multi_exec("DELETE FROM vvar WHERE name='ci-comment'");
2805 db_multi_exec("PRAGMA repository.application_id=252006673;");
2806 db_multi_exec("PRAGMA localdb.application_id=252006674;");
2807 if( dryRunFlag ){
2808 db_end_transaction(1);
2809 return;
2810 }
2811 db_end_transaction(0);
2812
2813 if( outputManifest & MFESTFLG_TAGS ){
2814 Blob tagslist;
2815
+1 -1
--- src/checkout.c
+++ src/checkout.c
@@ -397,11 +397,11 @@
397397
** The opposite of "[[open]]". Close the current database connection.
398398
** Require a -f or --force flag if there are unsaved changes in the
399399
** current check-out or if there is non-empty stash.
400400
**
401401
** Options:
402
-** --force|-f necessary to close a check out with uncommitted changes
402
+** -f|--force necessary to close a check out with uncommitted changes
403403
**
404404
** See also: [[open]]
405405
*/
406406
void close_cmd(void){
407407
int forceFlag = find_option("force","f",0)!=0;
408408
--- src/checkout.c
+++ src/checkout.c
@@ -397,11 +397,11 @@
397 ** The opposite of "[[open]]". Close the current database connection.
398 ** Require a -f or --force flag if there are unsaved changes in the
399 ** current check-out or if there is non-empty stash.
400 **
401 ** Options:
402 ** --force|-f necessary to close a check out with uncommitted changes
403 **
404 ** See also: [[open]]
405 */
406 void close_cmd(void){
407 int forceFlag = find_option("force","f",0)!=0;
408
--- src/checkout.c
+++ src/checkout.c
@@ -397,11 +397,11 @@
397 ** The opposite of "[[open]]". Close the current database connection.
398 ** Require a -f or --force flag if there are unsaved changes in the
399 ** current check-out or if there is non-empty stash.
400 **
401 ** Options:
402 ** -f|--force necessary to close a check out with uncommitted changes
403 **
404 ** See also: [[open]]
405 */
406 void close_cmd(void){
407 int forceFlag = find_option("force","f",0)!=0;
408
+2 -2
--- src/clone.c
+++ src/clone.c
@@ -121,12 +121,12 @@
121121
** By default, the current login name is used to create the default
122122
** admin user for the new clone. This can be overridden using
123123
** the -A|--admin-user parameter.
124124
**
125125
** Options:
126
-** --admin-user|-A USERNAME Make USERNAME the administrator
127
-** --httpauth|-B USER:PASS Add HTTP Basic Authorization to requests
126
+** -A|--admin-user USERNAME Make USERNAME the administrator
127
+** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests
128128
** --nested Allow opening a repository inside an opened
129129
** checkout
130130
** --nocompress Omit extra delta compression
131131
** --no-open Clone only. Do not open a check-out.
132132
** --once Don't remember the URI.
133133
134134
ADDED src/color.c
--- src/clone.c
+++ src/clone.c
@@ -121,12 +121,12 @@
121 ** By default, the current login name is used to create the default
122 ** admin user for the new clone. This can be overridden using
123 ** the -A|--admin-user parameter.
124 **
125 ** Options:
126 ** --admin-user|-A USERNAME Make USERNAME the administrator
127 ** --httpauth|-B USER:PASS Add HTTP Basic Authorization to requests
128 ** --nested Allow opening a repository inside an opened
129 ** checkout
130 ** --nocompress Omit extra delta compression
131 ** --no-open Clone only. Do not open a check-out.
132 ** --once Don't remember the URI.
133
134 DDED src/color.c
--- src/clone.c
+++ src/clone.c
@@ -121,12 +121,12 @@
121 ** By default, the current login name is used to create the default
122 ** admin user for the new clone. This can be overridden using
123 ** the -A|--admin-user parameter.
124 **
125 ** Options:
126 ** -A|--admin-user USERNAME Make USERNAME the administrator
127 ** -B|--httpauth USER:PASS Add HTTP Basic Authorization to requests
128 ** --nested Allow opening a repository inside an opened
129 ** checkout
130 ** --nocompress Omit extra delta compression
131 ** --no-open Clone only. Do not open a check-out.
132 ** --once Don't remember the URI.
133
134 DDED src/color.c
+24
--- a/src/color.c
+++ b/src/color.c
@@ -0,0 +1,24 @@
1
+/*
2
+** Copyright (c) 2007 D. Richard Hipp
3
+**
4
+** This program is free software; you can redistribute it and/or
5
+** modify it under the terms of the Simplified BSD License (also
6
+** known as the "2-Clause License" or "FreeBSD License".)
7
+
8
+** This program is distributed in the hope that it will be useful,
9
+** but without any warranty; without even the implied warranty of
10
+** merchantability or fitness for a particular purpose.
11
+**
12
+** Author contact information:
13
+** [email protected]
14
+** http://www.hwaci.com/drh/
15
+**
16
+*******************************************************************************
17
+**
18
+** This file contains code used to select colors based on branch and
19
+** user names.
20
+**
21
+*/
22
+#include "config.h"
23
+#include <string.h>int i; /* Loop counter */ /label>Branch %s(zNm):
24
+ @ </label><br /test-hash-color
--- a/src/color.c
+++ b/src/color.c
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/src/color.c
+++ b/src/color.c
@@ -0,0 +1,24 @@
1 /*
2 ** Copyright (c) 2007 D. Richard Hipp
3 **
4 ** This program is free software; you can redistribute it and/or
5 ** modify it under the terms of the Simplified BSD License (also
6 ** known as the "2-Clause License" or "FreeBSD License".)
7
8 ** This program is distributed in the hope that it will be useful,
9 ** but without any warranty; without even the implied warranty of
10 ** merchantability or fitness for a particular purpose.
11 **
12 ** Author contact information:
13 ** [email protected]
14 ** http://www.hwaci.com/drh/
15 **
16 *******************************************************************************
17 **
18 ** This file contains code used to select colors based on branch and
19 ** user names.
20 **
21 */
22 #include "config.h"
23 #include <string.h>int i; /* Loop counter */ /label>Branch %s(zNm):
24 @ </label><br /test-hash-color
+3 -4
--- src/configure.c
+++ src/configure.c
@@ -89,10 +89,11 @@
8989
const char *zName; /* Name of the configuration parameter */
9090
int groupMask; /* Which config groups is it part of */
9191
} aConfig[] = {
9292
{ "css", CONFIGSET_CSS },
9393
{ "header", CONFIGSET_SKIN },
94
+ { "mainmenu", CONFIGSET_SKIN },
9495
{ "footer", CONFIGSET_SKIN },
9596
{ "details", CONFIGSET_SKIN },
9697
{ "js", CONFIGSET_SKIN },
9798
{ "logo-mimetype", CONFIGSET_SKIN },
9899
{ "logo-image", CONFIGSET_SKIN },
@@ -112,14 +113,11 @@
112113
{ "timeline-utc", CONFIGSET_SKIN },
113114
{ "adunit", CONFIGSET_SKIN },
114115
{ "adunit-omit-if-admin", CONFIGSET_SKIN },
115116
{ "adunit-omit-if-user", CONFIGSET_SKIN },
116117
{ "default-csp", CONFIGSET_SKIN },
117
- { "sitemap-docidx", CONFIGSET_SKIN },
118
- { "sitemap-download", CONFIGSET_SKIN },
119
- { "sitemap-license", CONFIGSET_SKIN },
120
- { "sitemap-contact", CONFIGSET_SKIN },
118
+ { "sitemap-extra", CONFIGSET_SKIN },
121119
{ "safe-html", CONFIGSET_SKIN },
122120
123121
#ifdef FOSSIL_ENABLE_TH1_DOCS
124122
{ "th1-docs", CONFIGSET_TH1 },
125123
#endif
@@ -167,10 +165,11 @@
167165
{ "ticket-title-expr", CONFIGSET_TKT },
168166
{ "ticket-closed-expr", CONFIGSET_TKT },
169167
{ "@reportfmt", CONFIGSET_TKT },
170168
171169
{ "@user", CONFIGSET_USER },
170
+ { "user-color-map", CONFIGSET_USER },
172171
173172
{ "@concealed", CONFIGSET_ADDR },
174173
175174
{ "@shun", CONFIGSET_SHUN },
176175
177176
--- src/configure.c
+++ src/configure.c
@@ -89,10 +89,11 @@
89 const char *zName; /* Name of the configuration parameter */
90 int groupMask; /* Which config groups is it part of */
91 } aConfig[] = {
92 { "css", CONFIGSET_CSS },
93 { "header", CONFIGSET_SKIN },
 
94 { "footer", CONFIGSET_SKIN },
95 { "details", CONFIGSET_SKIN },
96 { "js", CONFIGSET_SKIN },
97 { "logo-mimetype", CONFIGSET_SKIN },
98 { "logo-image", CONFIGSET_SKIN },
@@ -112,14 +113,11 @@
112 { "timeline-utc", CONFIGSET_SKIN },
113 { "adunit", CONFIGSET_SKIN },
114 { "adunit-omit-if-admin", CONFIGSET_SKIN },
115 { "adunit-omit-if-user", CONFIGSET_SKIN },
116 { "default-csp", CONFIGSET_SKIN },
117 { "sitemap-docidx", CONFIGSET_SKIN },
118 { "sitemap-download", CONFIGSET_SKIN },
119 { "sitemap-license", CONFIGSET_SKIN },
120 { "sitemap-contact", CONFIGSET_SKIN },
121 { "safe-html", CONFIGSET_SKIN },
122
123 #ifdef FOSSIL_ENABLE_TH1_DOCS
124 { "th1-docs", CONFIGSET_TH1 },
125 #endif
@@ -167,10 +165,11 @@
167 { "ticket-title-expr", CONFIGSET_TKT },
168 { "ticket-closed-expr", CONFIGSET_TKT },
169 { "@reportfmt", CONFIGSET_TKT },
170
171 { "@user", CONFIGSET_USER },
 
172
173 { "@concealed", CONFIGSET_ADDR },
174
175 { "@shun", CONFIGSET_SHUN },
176
177
--- src/configure.c
+++ src/configure.c
@@ -89,10 +89,11 @@
89 const char *zName; /* Name of the configuration parameter */
90 int groupMask; /* Which config groups is it part of */
91 } aConfig[] = {
92 { "css", CONFIGSET_CSS },
93 { "header", CONFIGSET_SKIN },
94 { "mainmenu", CONFIGSET_SKIN },
95 { "footer", CONFIGSET_SKIN },
96 { "details", CONFIGSET_SKIN },
97 { "js", CONFIGSET_SKIN },
98 { "logo-mimetype", CONFIGSET_SKIN },
99 { "logo-image", CONFIGSET_SKIN },
@@ -112,14 +113,11 @@
113 { "timeline-utc", CONFIGSET_SKIN },
114 { "adunit", CONFIGSET_SKIN },
115 { "adunit-omit-if-admin", CONFIGSET_SKIN },
116 { "adunit-omit-if-user", CONFIGSET_SKIN },
117 { "default-csp", CONFIGSET_SKIN },
118 { "sitemap-extra", CONFIGSET_SKIN },
 
 
 
119 { "safe-html", CONFIGSET_SKIN },
120
121 #ifdef FOSSIL_ENABLE_TH1_DOCS
122 { "th1-docs", CONFIGSET_TH1 },
123 #endif
@@ -167,10 +165,11 @@
165 { "ticket-title-expr", CONFIGSET_TKT },
166 { "ticket-closed-expr", CONFIGSET_TKT },
167 { "@reportfmt", CONFIGSET_TKT },
168
169 { "@user", CONFIGSET_USER },
170 { "user-color-map", CONFIGSET_USER },
171
172 { "@concealed", CONFIGSET_ADDR },
173
174 { "@shun", CONFIGSET_SHUN },
175
176
+17 -4
--- src/content.c
+++ src/content.c
@@ -555,14 +555,13 @@
555555
** or not the entry is a phantom
556556
*/
557557
db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash);
558558
if( db_step(&s1)==SQLITE_ROW ){
559559
rid = db_column_int(&s1, 0);
560
- if( db_column_int(&s1, 1)>=0 || pBlob==0 ){
561
- /* Either the entry is not a phantom or it is a phantom but we
562
- ** have no data with which to dephantomize it. In either case,
563
- ** there is nothing for us to do other than return the RID. */
560
+ if( db_column_int(&s1, 1)>=0 ){
561
+ /* The entry is not a phantom. There is nothing for us to do
562
+ ** other than return the RID. */
564563
db_finalize(&s1);
565564
db_end_transaction(0);
566565
return rid;
567566
}
568567
}else{
@@ -798,10 +797,12 @@
798797
** gives the smallest delta is choosen.
799798
**
800799
** If rid is already a delta from some other place then no
801800
** conversion occurs and this is a no-op unless force==1. If force==1,
802801
** then nSrc must also be 1.
802
+**
803
+** If rid refers to a phantom, no delta is created.
803804
**
804805
** Never generate a delta that carries a private artifact into a public
805806
** artifact. Otherwise, when we go to send the public artifact on a
806807
** sync operation, the other end of the sync will never be able to receive
807808
** the source of the delta. It is OK to delta private->private and
@@ -825,14 +826,26 @@
825826
Blob bestDelta; /* Best delta seen so far */
826827
int bestSrc = 0; /* Which aSrc is the source of the best delta */
827828
int rc = 0; /* Value to return */
828829
int i; /* Loop variable for aSrc[] */
829830
831
+ /*
832
+ ** Historically this routine gracefully ignored the rid 0, but the
833
+ ** addition of a call to content_is_available() in [188ffef2] caused
834
+ ** rid 0 to trigger an assert via bag_find(). Rather than track down
835
+ ** all such calls (e.g. the one via /technoteedit), we'll continue
836
+ ** to gracefully ignore rid 0 here.
837
+ */
838
+ if( 0==rid ) return 0;
839
+
830840
/* If rid is already a child (a delta) of some other artifact, return
831841
** immediately if the force flags is false
832842
*/
833843
if( !force && delta_source_rid(rid)>0 ) return 0;
844
+
845
+ /* If rid refers to a phantom, skip deltification. */
846
+ if( 0==content_is_available(rid) ) return 0;
834847
835848
/* Get the complete content of the object to be delta-ed. If the size
836849
** is less than 50 bytes, then there really is no point in trying to do
837850
** a delta, so return immediately
838851
*/
839852
--- src/content.c
+++ src/content.c
@@ -555,14 +555,13 @@
555 ** or not the entry is a phantom
556 */
557 db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash);
558 if( db_step(&s1)==SQLITE_ROW ){
559 rid = db_column_int(&s1, 0);
560 if( db_column_int(&s1, 1)>=0 || pBlob==0 ){
561 /* Either the entry is not a phantom or it is a phantom but we
562 ** have no data with which to dephantomize it. In either case,
563 ** there is nothing for us to do other than return the RID. */
564 db_finalize(&s1);
565 db_end_transaction(0);
566 return rid;
567 }
568 }else{
@@ -798,10 +797,12 @@
798 ** gives the smallest delta is choosen.
799 **
800 ** If rid is already a delta from some other place then no
801 ** conversion occurs and this is a no-op unless force==1. If force==1,
802 ** then nSrc must also be 1.
 
 
803 **
804 ** Never generate a delta that carries a private artifact into a public
805 ** artifact. Otherwise, when we go to send the public artifact on a
806 ** sync operation, the other end of the sync will never be able to receive
807 ** the source of the delta. It is OK to delta private->private and
@@ -825,14 +826,26 @@
825 Blob bestDelta; /* Best delta seen so far */
826 int bestSrc = 0; /* Which aSrc is the source of the best delta */
827 int rc = 0; /* Value to return */
828 int i; /* Loop variable for aSrc[] */
829
 
 
 
 
 
 
 
 
 
830 /* If rid is already a child (a delta) of some other artifact, return
831 ** immediately if the force flags is false
832 */
833 if( !force && delta_source_rid(rid)>0 ) return 0;
 
 
 
834
835 /* Get the complete content of the object to be delta-ed. If the size
836 ** is less than 50 bytes, then there really is no point in trying to do
837 ** a delta, so return immediately
838 */
839
--- src/content.c
+++ src/content.c
@@ -555,14 +555,13 @@
555 ** or not the entry is a phantom
556 */
557 db_prepare(&s1, "SELECT rid, size FROM blob WHERE uuid=%B", &hash);
558 if( db_step(&s1)==SQLITE_ROW ){
559 rid = db_column_int(&s1, 0);
560 if( db_column_int(&s1, 1)>=0 ){
561 /* The entry is not a phantom. There is nothing for us to do
562 ** other than return the RID. */
 
563 db_finalize(&s1);
564 db_end_transaction(0);
565 return rid;
566 }
567 }else{
@@ -798,10 +797,12 @@
797 ** gives the smallest delta is choosen.
798 **
799 ** If rid is already a delta from some other place then no
800 ** conversion occurs and this is a no-op unless force==1. If force==1,
801 ** then nSrc must also be 1.
802 **
803 ** If rid refers to a phantom, no delta is created.
804 **
805 ** Never generate a delta that carries a private artifact into a public
806 ** artifact. Otherwise, when we go to send the public artifact on a
807 ** sync operation, the other end of the sync will never be able to receive
808 ** the source of the delta. It is OK to delta private->private and
@@ -825,14 +826,26 @@
826 Blob bestDelta; /* Best delta seen so far */
827 int bestSrc = 0; /* Which aSrc is the source of the best delta */
828 int rc = 0; /* Value to return */
829 int i; /* Loop variable for aSrc[] */
830
831 /*
832 ** Historically this routine gracefully ignored the rid 0, but the
833 ** addition of a call to content_is_available() in [188ffef2] caused
834 ** rid 0 to trigger an assert via bag_find(). Rather than track down
835 ** all such calls (e.g. the one via /technoteedit), we'll continue
836 ** to gracefully ignore rid 0 here.
837 */
838 if( 0==rid ) return 0;
839
840 /* If rid is already a child (a delta) of some other artifact, return
841 ** immediately if the force flags is false
842 */
843 if( !force && delta_source_rid(rid)>0 ) return 0;
844
845 /* If rid refers to a phantom, skip deltification. */
846 if( 0==content_is_available(rid) ) return 0;
847
848 /* Get the complete content of the object to be delta-ed. If the size
849 ** is less than 50 bytes, then there really is no point in trying to do
850 ** a delta, so return immediately
851 */
852
+35 -16
--- src/cookies.c
+++ src/cookies.c
@@ -52,10 +52,11 @@
5252
** char *cookie_value(zPName, zDefault);
5353
**
5454
** Look up the value of a cookie parameter zPName. Return zDefault if
5555
** there is no display preferences cookie or if zPName does not exist.
5656
*/
57
+#include "config.h"
5758
#include "cookies.h"
5859
#include <assert.h>
5960
#include <string.h>
6061
6162
#if INTERFACE
@@ -208,24 +209,42 @@
208209
** Show the current display settings contained in the
209210
** "fossil_display_settings" cookie.
210211
*/
211212
void cookie_page(void){
212213
int i;
213
- if( PB("clear") ){
214
- cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1);
215
- cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, "");
216
- }
214
+ int nCookie = 0;
215
+ const char *zName = 0;
216
+ const char *zValue = 0;
217
+ int isQP = 0;
217218
cookie_parse();
218
- style_header("User Preference Cookie Values");
219
- if( cookies.nParam ){
220
- style_submenu_element("Clear", "%R/cookies?clear");
221
- }
222
- @ <p>The following are user preference settings held in the
223
- @ "fossil_display_settings" cookie.
224
- @ <ul>
225
- @ <li>Raw cookie value: "%h(PD("fossil_display_settings",""))"
226
- for(i=0; i<cookies.nParam; i++){
227
- @ <li>%h(cookies.aParam[i].zPName): "%h(cookies.aParam[i].zPValue)"
228
- }
229
- @ </ul>
219
+ style_header("Cookies");
220
+ @ <form method="POST">
221
+ @ <ol>
222
+ for(i=0; cgi_param_info(i, &zName, &zValue, &isQP); i++){
223
+ char *zDel;
224
+ if( isQP ) continue;
225
+ if( fossil_isupper(zName[0]) ) continue;
226
+ zDel = mprintf("del%s",zName);
227
+ if( P(zDel)!=0 ){
228
+ cgi_set_cookie(zName, "", 0, -1);
229
+ cgi_redirect("cookies");
230
+ }
231
+ nCookie++;
232
+ @ <li><p><b>%h(zName)</b>: %h(zValue)
233
+ @ <input type="submit" name="%h(zDel)" value="Delete">
234
+ if( fossil_strcmp(zName, DISPLAY_SETTINGS_COOKIE)==0 && cookies.nParam>0 ){
235
+ int j;
236
+ @ <ul>
237
+ for(j=0; j<cookies.nParam; j++){
238
+ @ <li>%h(cookies.aParam[j].zPName): "%h(cookies.aParam[j].zPValue)"
239
+ }
240
+ @ </ul>
241
+ }
242
+ fossil_free(zDel);
243
+ }
244
+ @ </ol>
245
+ @ </form>
246
+ if( nCookie==0 ){
247
+ @ <p><i>No cookies for this website</i></p>
248
+ }
230249
style_finish_page();
231250
}
232251
--- src/cookies.c
+++ src/cookies.c
@@ -52,10 +52,11 @@
52 ** char *cookie_value(zPName, zDefault);
53 **
54 ** Look up the value of a cookie parameter zPName. Return zDefault if
55 ** there is no display preferences cookie or if zPName does not exist.
56 */
 
57 #include "cookies.h"
58 #include <assert.h>
59 #include <string.h>
60
61 #if INTERFACE
@@ -208,24 +209,42 @@
208 ** Show the current display settings contained in the
209 ** "fossil_display_settings" cookie.
210 */
211 void cookie_page(void){
212 int i;
213 if( PB("clear") ){
214 cgi_set_cookie(DISPLAY_SETTINGS_COOKIE, "", 0, 1);
215 cgi_replace_parameter(DISPLAY_SETTINGS_COOKIE, "");
216 }
217 cookie_parse();
218 style_header("User Preference Cookie Values");
219 if( cookies.nParam ){
220 style_submenu_element("Clear", "%R/cookies?clear");
221 }
222 @ <p>The following are user preference settings held in the
223 @ "fossil_display_settings" cookie.
224 @ <ul>
225 @ <li>Raw cookie value: "%h(PD("fossil_display_settings",""))"
226 for(i=0; i<cookies.nParam; i++){
227 @ <li>%h(cookies.aParam[i].zPName): "%h(cookies.aParam[i].zPValue)"
228 }
229 @ </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230 style_finish_page();
231 }
232
--- src/cookies.c
+++ src/cookies.c
@@ -52,10 +52,11 @@
52 ** char *cookie_value(zPName, zDefault);
53 **
54 ** Look up the value of a cookie parameter zPName. Return zDefault if
55 ** there is no display preferences cookie or if zPName does not exist.
56 */
57 #include "config.h"
58 #include "cookies.h"
59 #include <assert.h>
60 #include <string.h>
61
62 #if INTERFACE
@@ -208,24 +209,42 @@
209 ** Show the current display settings contained in the
210 ** "fossil_display_settings" cookie.
211 */
212 void cookie_page(void){
213 int i;
214 int nCookie = 0;
215 const char *zName = 0;
216 const char *zValue = 0;
217 int isQP = 0;
218 cookie_parse();
219 style_header("Cookies");
220 @ <form method="POST">
221 @ <ol>
222 for(i=0; cgi_param_info(i, &zName, &zValue, &isQP); i++){
223 char *zDel;
224 if( isQP ) continue;
225 if( fossil_isupper(zName[0]) ) continue;
226 zDel = mprintf("del%s",zName);
227 if( P(zDel)!=0 ){
228 cgi_set_cookie(zName, "", 0, -1);
229 cgi_redirect("cookies");
230 }
231 nCookie++;
232 @ <li><p><b>%h(zName)</b>: %h(zValue)
233 @ <input type="submit" name="%h(zDel)" value="Delete">
234 if( fossil_strcmp(zName, DISPLAY_SETTINGS_COOKIE)==0 && cookies.nParam>0 ){
235 int j;
236 @ <ul>
237 for(j=0; j<cookies.nParam; j++){
238 @ <li>%h(cookies.aParam[j].zPName): "%h(cookies.aParam[j].zPValue)"
239 }
240 @ </ul>
241 }
242 fossil_free(zDel);
243 }
244 @ </ol>
245 @ </form>
246 if( nCookie==0 ){
247 @ <p><i>No cookies for this website</i></p>
248 }
249 style_finish_page();
250 }
251
+2 -1
--- src/db.c
+++ src/db.c
@@ -1618,10 +1618,11 @@
16181618
if( rc!=SQLITE_OK ){
16191619
db_err("[%s]: %s", zDbName, sqlite3_errmsg(db));
16201620
}
16211621
db_maybe_set_encryption_key(db, zDbName);
16221622
sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc);
1623
+ sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_TRIGGER, 0, &rc);
16231624
sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc);
16241625
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc);
16251626
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc);
16261627
sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc);
16271628
sqlite3_busy_timeout(db, 15000);
@@ -2684,11 +2685,11 @@
26842685
** default users "anonymous", "nobody", "reader", "developer", and their
26852686
** associated permissions will be copied.
26862687
**
26872688
** Options:
26882689
** --template FILE Copy settings from repository file
2689
-** --admin-user|-A USERNAME Select given USERNAME as admin user
2690
+** -A|--admin-user USERNAME Select given USERNAME as admin user
26902691
** --date-override DATETIME Use DATETIME as time of the initial check-in
26912692
** --sha1 Use an initial hash policy of "sha1"
26922693
**
26932694
** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
26942695
** year-month-day form, it may be truncated, the "T" may be replaced by
26952696
--- src/db.c
+++ src/db.c
@@ -1618,10 +1618,11 @@
1618 if( rc!=SQLITE_OK ){
1619 db_err("[%s]: %s", zDbName, sqlite3_errmsg(db));
1620 }
1621 db_maybe_set_encryption_key(db, zDbName);
1622 sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc);
 
1623 sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc);
1624 sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc);
1625 sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc);
1626 sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc);
1627 sqlite3_busy_timeout(db, 15000);
@@ -2684,11 +2685,11 @@
2684 ** default users "anonymous", "nobody", "reader", "developer", and their
2685 ** associated permissions will be copied.
2686 **
2687 ** Options:
2688 ** --template FILE Copy settings from repository file
2689 ** --admin-user|-A USERNAME Select given USERNAME as admin user
2690 ** --date-override DATETIME Use DATETIME as time of the initial check-in
2691 ** --sha1 Use an initial hash policy of "sha1"
2692 **
2693 ** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
2694 ** year-month-day form, it may be truncated, the "T" may be replaced by
2695
--- src/db.c
+++ src/db.c
@@ -1618,10 +1618,11 @@
1618 if( rc!=SQLITE_OK ){
1619 db_err("[%s]: %s", zDbName, sqlite3_errmsg(db));
1620 }
1621 db_maybe_set_encryption_key(db, zDbName);
1622 sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FKEY, 0, &rc);
1623 sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_TRIGGER, 0, &rc);
1624 sqlite3_db_config(db, SQLITE_DBCONFIG_TRUSTED_SCHEMA, 0, &rc);
1625 sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, &rc);
1626 sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, &rc);
1627 sqlite3_db_config(db, SQLITE_DBCONFIG_DEFENSIVE, 1, &rc);
1628 sqlite3_busy_timeout(db, 15000);
@@ -2684,11 +2685,11 @@
2685 ** default users "anonymous", "nobody", "reader", "developer", and their
2686 ** associated permissions will be copied.
2687 **
2688 ** Options:
2689 ** --template FILE Copy settings from repository file
2690 ** -A|--admin-user USERNAME Select given USERNAME as admin user
2691 ** --date-override DATETIME Use DATETIME as time of the initial check-in
2692 ** --sha1 Use an initial hash policy of "sha1"
2693 **
2694 ** DATETIME may be "now" or "YYYY-MM-DDTHH:MM:SS.SSS". If in
2695 ** year-month-day form, it may be truncated, the "T" may be replaced by
2696
--- src/default.css
+++ src/default.css
@@ -1762,5 +1762,18 @@
17621762
17631763
body.chat #chat-drop-details img {
17641764
max-width: 45%;
17651765
max-height: 45%;
17661766
}
1767
+
1768
+/* Objects in the "desktoponly" class are invisible on mobile */
1769
+@media screen and (max-width: 600px) {
1770
+ .desktoponly {
1771
+ display: none;
1772
+ }
1773
+}
1774
+/* Objects in the "wideonly" class are invisible only on wide-screen desktops */
1775
+@media screen and (max-width: 1200px) {
1776
+ .wideonly {
1777
+ display: none;
1778
+ }
1779
+}
17671780
--- src/default.css
+++ src/default.css
@@ -1762,5 +1762,18 @@
1762
1763 body.chat #chat-drop-details img {
1764 max-width: 45%;
1765 max-height: 45%;
1766 }
 
 
 
 
 
 
 
 
 
 
 
 
 
1767
--- src/default.css
+++ src/default.css
@@ -1762,5 +1762,18 @@
1762
1763 body.chat #chat-drop-details img {
1764 max-width: 45%;
1765 max-height: 45%;
1766 }
1767
1768 /* Objects in the "desktoponly" class are invisible on mobile */
1769 @media screen and (max-width: 600px) {
1770 .desktoponly {
1771 display: none;
1772 }
1773 }
1774 /* Objects in the "wideonly" class are invisible only on wide-screen desktops */
1775 @media screen and (max-width: 1200px) {
1776 .wideonly {
1777 display: none;
1778 }
1779 }
1780
+1 -1
--- src/diff.c
+++ src/diff.c
@@ -2090,11 +2090,11 @@
20902090
if( zErr ) fossil_fatal("regex error: %s", zErr);
20912091
}
20922092
diffFlag = diff_options();
20932093
verify_all_options();
20942094
if( g.argc!=4 ) usage("FILE1 FILE2");
2095
- diff_print_filenames(g.argv[2], g.argv[3], diffFlag);
2095
+ diff_print_filenames(g.argv[2], g.argv[3], diffFlag, 0);
20962096
blob_read_from_file(&a, g.argv[2], ExtFILE);
20972097
blob_read_from_file(&b, g.argv[3], ExtFILE);
20982098
blob_zero(&out);
20992099
text_diff(&a, &b, &out, pRe, diffFlag);
21002100
blob_write_to_file(&out, "-");
21012101
--- src/diff.c
+++ src/diff.c
@@ -2090,11 +2090,11 @@
2090 if( zErr ) fossil_fatal("regex error: %s", zErr);
2091 }
2092 diffFlag = diff_options();
2093 verify_all_options();
2094 if( g.argc!=4 ) usage("FILE1 FILE2");
2095 diff_print_filenames(g.argv[2], g.argv[3], diffFlag);
2096 blob_read_from_file(&a, g.argv[2], ExtFILE);
2097 blob_read_from_file(&b, g.argv[3], ExtFILE);
2098 blob_zero(&out);
2099 text_diff(&a, &b, &out, pRe, diffFlag);
2100 blob_write_to_file(&out, "-");
2101
--- src/diff.c
+++ src/diff.c
@@ -2090,11 +2090,11 @@
2090 if( zErr ) fossil_fatal("regex error: %s", zErr);
2091 }
2092 diffFlag = diff_options();
2093 verify_all_options();
2094 if( g.argc!=4 ) usage("FILE1 FILE2");
2095 diff_print_filenames(g.argv[2], g.argv[3], diffFlag, 0);
2096 blob_read_from_file(&a, g.argv[2], ExtFILE);
2097 blob_read_from_file(&b, g.argv[3], ExtFILE);
2098 blob_zero(&out);
2099 text_diff(&a, &b, &out, pRe, diffFlag);
2100 blob_write_to_file(&out, "-");
2101
+46 -25
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -106,22 +106,27 @@
106106
}
107107
108108
/*
109109
** Print the "Index:" message that patches wants to see at the top of a diff.
110110
*/
111
-void diff_print_index(const char *zFile, u64 diffFlags){
111
+void diff_print_index(const char *zFile, u64 diffFlags, Blob *diffBlob){
112112
if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){
113113
char *z = mprintf("Index: %s\n%.66c\n", zFile, '=');
114
- fossil_print("%s", z);
114
+ if( !diffBlob ){
115
+ fossil_print("%s", z);
116
+ }else{
117
+ blob_appendf(diffBlob, "%s", z);
118
+ }
115119
fossil_free(z);
116120
}
117121
}
118122
119123
/*
120124
** Print the +++/--- filename lines for a diff operation.
121125
*/
122
-void diff_print_filenames(const char *zLeft, const char *zRight, u64 diffFlags){
126
+void diff_print_filenames(const char *zLeft, const char *zRight,
127
+ u64 diffFlags, Blob *diffBlob){
123128
char *z = 0;
124129
if( diffFlags & DIFF_BRIEF ){
125130
/* no-op */
126131
}else if( diffFlags & DIFF_SIDEBYSIDE ){
127132
int w = diff_width(diffFlags);
@@ -142,11 +147,15 @@
142147
(w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '=');
143148
}
144149
}else{
145150
z = mprintf("--- %s\n+++ %s\n", zLeft, zRight);
146151
}
147
- fossil_print("%s", z);
152
+ if( !diffBlob ){
153
+ fossil_print("%s", z);
154
+ }else{
155
+ blob_appendf(diffBlob, "%s", z);
156
+ }
148157
fossil_free(z);
149158
}
150159
151160
/*
152161
** Show the difference between two files, one in memory and one on disk.
@@ -171,11 +180,12 @@
171180
const char *zName, /* Display name of the file */
172181
const char *zDiffCmd, /* Command for comparison */
173182
const char *zBinGlob, /* Treat file names matching this as binary */
174183
int fIncludeBinary, /* Include binary files for external diff */
175184
u64 diffFlags, /* Flags to control the diff */
176
- int fSwapDiff /* Diff from Zfile2 to Pfile1 */
185
+ int fSwapDiff, /* Diff from Zfile2 to Pfile1 */
186
+ Blob *diffBlob /* Blob to store diff output */
177187
){
178188
if( zDiffCmd==0 ){
179189
Blob out; /* Diff output text */
180190
Blob file2; /* Content of zFile2 */
181191
const char *zName2; /* Name of zFile2 for display */
@@ -201,14 +211,23 @@
201211
}else{
202212
text_diff(pFile1, &file2, &out, 0, diffFlags);
203213
}
204214
if( blob_size(&out) ){
205215
if( diffFlags & DIFF_NUMSTAT ){
206
- fossil_print("%s %s\n", blob_str(&out), zName);
216
+ if( !diffBlob ){
217
+ fossil_print("%s %s\n", blob_str(&out), zName);
218
+ }else{
219
+ blob_appendf(diffBlob, "%s %s\n", blob_str(&out), zName);
220
+ }
207221
}else{
208
- diff_print_filenames(zName, zName2, diffFlags);
209
- fossil_print("%s\n", blob_str(&out));
222
+ if( !diffBlob ){
223
+ diff_print_filenames(zName, zName2, diffFlags, 0);
224
+ fossil_print("%s\n", blob_str(&out));
225
+ }else{
226
+ diff_print_filenames(zName, zName2, diffFlags, diffBlob);
227
+ blob_appendf(diffBlob, "%s\n", blob_str(&out));
228
+ }
210229
}
211230
}
212231
blob_reset(&out);
213232
}
214233
@@ -302,11 +321,11 @@
302321
blob_zero(&out);
303322
text_diff(pFile1, pFile2, &out, 0, diffFlags);
304323
if( diffFlags & DIFF_NUMSTAT ){
305324
fossil_print("%s %s\n", blob_str(&out), zName);
306325
}else{
307
- diff_print_filenames(zName, zName, diffFlags);
326
+ diff_print_filenames(zName, zName, diffFlags, 0);
308327
fossil_print("%s\n", blob_str(&out));
309328
}
310329
311330
/* Release memory resources */
312331
blob_reset(&out);
@@ -366,17 +385,18 @@
366385
**
367386
** When using an external diff program, zBinGlob contains the GLOB patterns
368387
** for file names to treat as binary. If fIncludeBinary is zero, these files
369388
** will be skipped in addition to files that may contain binary content.
370389
*/
371
-static void diff_against_disk(
390
+void diff_against_disk(
372391
const char *zFrom, /* Version to difference from */
373392
const char *zDiffCmd, /* Use this diff command. NULL for built-in */
374393
const char *zBinGlob, /* Treat file names matching this as binary */
375394
int fIncludeBinary, /* Treat file names matching this as binary */
376395
u64 diffFlags, /* Flags controlling diff output */
377
- FileDirList *pFileDir /* Which files to diff */
396
+ FileDirList *pFileDir, /* Which files to diff */
397
+ Blob *diffBlob /* Blob to output diff instead of stdout */
378398
){
379399
int vid;
380400
Blob sql;
381401
Stmt q;
382402
int asNewFile; /* Treat non-existant files as empty files */
@@ -467,24 +487,24 @@
467487
}
468488
if( showDiff ){
469489
Blob content;
470490
int isBin;
471491
if( !isLink != !file_islink(zFullName) ){
472
- diff_print_index(zPathname, diffFlags);
473
- diff_print_filenames(zPathname, zPathname, diffFlags);
492
+ diff_print_index(zPathname, diffFlags, 0);
493
+ diff_print_filenames(zPathname, zPathname, diffFlags, 0);
474494
fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK);
475495
continue;
476496
}
477497
if( srcid>0 ){
478498
content_get(srcid, &content);
479499
}else{
480500
blob_zero(&content);
481501
}
482502
isBin = fIncludeBinary ? 0 : looks_like_binary(&content);
483
- diff_print_index(zPathname, diffFlags);
503
+ diff_print_index(zPathname, diffFlags, diffBlob);
484504
diff_file(&content, isBin, zFullName, zPathname, zDiffCmd,
485
- zBinGlob, fIncludeBinary, diffFlags, 0);
505
+ zBinGlob, fIncludeBinary, diffFlags, 0, diffBlob);
486506
blob_reset(&content);
487507
}
488508
blob_reset(&fname);
489509
}
490510
db_finalize(&q);
@@ -517,11 +537,11 @@
517537
const char *zFile = (const char*)db_column_text(&q, 0);
518538
if( !file_dir_match(pFileDir, zFile) ) continue;
519539
zFullName = mprintf("%s%s", g.zLocalRoot, zFile);
520540
db_column_blob(&q, 1, &content);
521541
diff_file(&content, 0, zFullName, zFile,
522
- zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0);
542
+ zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0, 0);
523543
fossil_free(zFullName);
524544
blob_reset(&content);
525545
}
526546
db_finalize(&q);
527547
}
@@ -555,11 +575,11 @@
555575
zName = pTo->zName;
556576
}else{
557577
zName = DIFF_NO_NAME;
558578
}
559579
if( diffFlags & DIFF_BRIEF ) return;
560
- diff_print_index(zName, diffFlags);
580
+ diff_print_index(zName, diffFlags, 0);
561581
if( pFrom ){
562582
rid = uuid_to_rid(pFrom->zUuid, 0);
563583
content_get(rid, &f1);
564584
}else{
565585
blob_zero(&f1);
@@ -804,12 +824,13 @@
804824
** The "-i" command-line option forces the use of the internal diff logic
805825
** rather than any external diff program that might be configured using
806826
** the "setting" command. If no external diff program is configured, then
807827
** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff".
808828
**
809
-** The "-N" or "--new-file" option causes the complete text of added or
810
-** deleted files to be displayed.
829
+** The "-v" or "--verbose" option causes the complete text of added or
830
+** deleted files to be displayed. -N and --new-file are aliases for
831
+** verbose mode.
811832
**
812833
** The "--diff-binary" option enables or disables the inclusion of binary files
813834
** when using an external diff program.
814835
**
815836
** The "--binary" option causes files matching the glob PATTERN to be treated
@@ -821,26 +842,26 @@
821842
** as binary
822843
** --branch BRANCH Show diff of all changes on BRANCH
823844
** --brief Show filenames only
824845
** --checkin VERSION Show diff of all changes in VERSION
825846
** --command PROG External diff program. Overrides "diff-command"
826
-** --context|-c N Use N lines of context
847
+** -c|--context N Use N lines of context
827848
** --diff-binary BOOL Include binary files with external commands
828849
** --exec-abs-paths Force absolute path names on external commands
829850
** --exec-rel-paths Force relative path names on external commands
830
-** --from|-r VERSION Select VERSION as source for the diff
831
-** --internal|-i Use internal diff logic
832
-** --new-file|-N Show complete text of added and deleted files
851
+** -r|--from VERSION Select VERSION as source for the diff
852
+** -i|--internal Use internal diff logic
833853
** --numstat Show only the number of lines delete and added
834
-** --side-by-side|-y Side-by-side diff
854
+** -y|--side-by-side Side-by-side diff
835855
** --strip-trailing-cr Strip trailing CR
836856
** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh")
837857
** --tk Launch a Tcl/Tk GUI for display
838858
** --to VERSION Select VERSION as target for the diff
839859
** --undo Diff against the "undo" buffer
840860
** --unified Unified diff
841861
** -v|--verbose Output complete text of added or deleted files
862
+** -N|--new-file Alias for --verbose
842863
** -w|--ignore-all-space Ignore white space when comparing lines
843864
** -W|--width N Width of lines in side-by-side diff
844865
** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace
845866
*/
846867
void diff_cmd(void){
@@ -941,11 +962,11 @@
941962
}
942963
diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary,
943964
diffFlags, pFileDir);
944965
}else if( zTo==0 ){
945966
diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary,
946
- diffFlags, pFileDir);
967
+ diffFlags, pFileDir, 0);
947968
}else{
948969
diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary,
949970
diffFlags, pFileDir);
950971
}
951972
if( pFileDir ){
952973
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -106,22 +106,27 @@
106 }
107
108 /*
109 ** Print the "Index:" message that patches wants to see at the top of a diff.
110 */
111 void diff_print_index(const char *zFile, u64 diffFlags){
112 if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){
113 char *z = mprintf("Index: %s\n%.66c\n", zFile, '=');
114 fossil_print("%s", z);
 
 
 
 
115 fossil_free(z);
116 }
117 }
118
119 /*
120 ** Print the +++/--- filename lines for a diff operation.
121 */
122 void diff_print_filenames(const char *zLeft, const char *zRight, u64 diffFlags){
 
123 char *z = 0;
124 if( diffFlags & DIFF_BRIEF ){
125 /* no-op */
126 }else if( diffFlags & DIFF_SIDEBYSIDE ){
127 int w = diff_width(diffFlags);
@@ -142,11 +147,15 @@
142 (w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '=');
143 }
144 }else{
145 z = mprintf("--- %s\n+++ %s\n", zLeft, zRight);
146 }
147 fossil_print("%s", z);
 
 
 
 
148 fossil_free(z);
149 }
150
151 /*
152 ** Show the difference between two files, one in memory and one on disk.
@@ -171,11 +180,12 @@
171 const char *zName, /* Display name of the file */
172 const char *zDiffCmd, /* Command for comparison */
173 const char *zBinGlob, /* Treat file names matching this as binary */
174 int fIncludeBinary, /* Include binary files for external diff */
175 u64 diffFlags, /* Flags to control the diff */
176 int fSwapDiff /* Diff from Zfile2 to Pfile1 */
 
177 ){
178 if( zDiffCmd==0 ){
179 Blob out; /* Diff output text */
180 Blob file2; /* Content of zFile2 */
181 const char *zName2; /* Name of zFile2 for display */
@@ -201,14 +211,23 @@
201 }else{
202 text_diff(pFile1, &file2, &out, 0, diffFlags);
203 }
204 if( blob_size(&out) ){
205 if( diffFlags & DIFF_NUMSTAT ){
206 fossil_print("%s %s\n", blob_str(&out), zName);
 
 
 
 
207 }else{
208 diff_print_filenames(zName, zName2, diffFlags);
209 fossil_print("%s\n", blob_str(&out));
 
 
 
 
 
210 }
211 }
212 blob_reset(&out);
213 }
214
@@ -302,11 +321,11 @@
302 blob_zero(&out);
303 text_diff(pFile1, pFile2, &out, 0, diffFlags);
304 if( diffFlags & DIFF_NUMSTAT ){
305 fossil_print("%s %s\n", blob_str(&out), zName);
306 }else{
307 diff_print_filenames(zName, zName, diffFlags);
308 fossil_print("%s\n", blob_str(&out));
309 }
310
311 /* Release memory resources */
312 blob_reset(&out);
@@ -366,17 +385,18 @@
366 **
367 ** When using an external diff program, zBinGlob contains the GLOB patterns
368 ** for file names to treat as binary. If fIncludeBinary is zero, these files
369 ** will be skipped in addition to files that may contain binary content.
370 */
371 static void diff_against_disk(
372 const char *zFrom, /* Version to difference from */
373 const char *zDiffCmd, /* Use this diff command. NULL for built-in */
374 const char *zBinGlob, /* Treat file names matching this as binary */
375 int fIncludeBinary, /* Treat file names matching this as binary */
376 u64 diffFlags, /* Flags controlling diff output */
377 FileDirList *pFileDir /* Which files to diff */
 
378 ){
379 int vid;
380 Blob sql;
381 Stmt q;
382 int asNewFile; /* Treat non-existant files as empty files */
@@ -467,24 +487,24 @@
467 }
468 if( showDiff ){
469 Blob content;
470 int isBin;
471 if( !isLink != !file_islink(zFullName) ){
472 diff_print_index(zPathname, diffFlags);
473 diff_print_filenames(zPathname, zPathname, diffFlags);
474 fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK);
475 continue;
476 }
477 if( srcid>0 ){
478 content_get(srcid, &content);
479 }else{
480 blob_zero(&content);
481 }
482 isBin = fIncludeBinary ? 0 : looks_like_binary(&content);
483 diff_print_index(zPathname, diffFlags);
484 diff_file(&content, isBin, zFullName, zPathname, zDiffCmd,
485 zBinGlob, fIncludeBinary, diffFlags, 0);
486 blob_reset(&content);
487 }
488 blob_reset(&fname);
489 }
490 db_finalize(&q);
@@ -517,11 +537,11 @@
517 const char *zFile = (const char*)db_column_text(&q, 0);
518 if( !file_dir_match(pFileDir, zFile) ) continue;
519 zFullName = mprintf("%s%s", g.zLocalRoot, zFile);
520 db_column_blob(&q, 1, &content);
521 diff_file(&content, 0, zFullName, zFile,
522 zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0);
523 fossil_free(zFullName);
524 blob_reset(&content);
525 }
526 db_finalize(&q);
527 }
@@ -555,11 +575,11 @@
555 zName = pTo->zName;
556 }else{
557 zName = DIFF_NO_NAME;
558 }
559 if( diffFlags & DIFF_BRIEF ) return;
560 diff_print_index(zName, diffFlags);
561 if( pFrom ){
562 rid = uuid_to_rid(pFrom->zUuid, 0);
563 content_get(rid, &f1);
564 }else{
565 blob_zero(&f1);
@@ -804,12 +824,13 @@
804 ** The "-i" command-line option forces the use of the internal diff logic
805 ** rather than any external diff program that might be configured using
806 ** the "setting" command. If no external diff program is configured, then
807 ** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff".
808 **
809 ** The "-N" or "--new-file" option causes the complete text of added or
810 ** deleted files to be displayed.
 
811 **
812 ** The "--diff-binary" option enables or disables the inclusion of binary files
813 ** when using an external diff program.
814 **
815 ** The "--binary" option causes files matching the glob PATTERN to be treated
@@ -821,26 +842,26 @@
821 ** as binary
822 ** --branch BRANCH Show diff of all changes on BRANCH
823 ** --brief Show filenames only
824 ** --checkin VERSION Show diff of all changes in VERSION
825 ** --command PROG External diff program. Overrides "diff-command"
826 ** --context|-c N Use N lines of context
827 ** --diff-binary BOOL Include binary files with external commands
828 ** --exec-abs-paths Force absolute path names on external commands
829 ** --exec-rel-paths Force relative path names on external commands
830 ** --from|-r VERSION Select VERSION as source for the diff
831 ** --internal|-i Use internal diff logic
832 ** --new-file|-N Show complete text of added and deleted files
833 ** --numstat Show only the number of lines delete and added
834 ** --side-by-side|-y Side-by-side diff
835 ** --strip-trailing-cr Strip trailing CR
836 ** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh")
837 ** --tk Launch a Tcl/Tk GUI for display
838 ** --to VERSION Select VERSION as target for the diff
839 ** --undo Diff against the "undo" buffer
840 ** --unified Unified diff
841 ** -v|--verbose Output complete text of added or deleted files
 
842 ** -w|--ignore-all-space Ignore white space when comparing lines
843 ** -W|--width N Width of lines in side-by-side diff
844 ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace
845 */
846 void diff_cmd(void){
@@ -941,11 +962,11 @@
941 }
942 diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary,
943 diffFlags, pFileDir);
944 }else if( zTo==0 ){
945 diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary,
946 diffFlags, pFileDir);
947 }else{
948 diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary,
949 diffFlags, pFileDir);
950 }
951 if( pFileDir ){
952
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -106,22 +106,27 @@
106 }
107
108 /*
109 ** Print the "Index:" message that patches wants to see at the top of a diff.
110 */
111 void diff_print_index(const char *zFile, u64 diffFlags, Blob *diffBlob){
112 if( (diffFlags & (DIFF_SIDEBYSIDE|DIFF_BRIEF|DIFF_NUMSTAT))==0 ){
113 char *z = mprintf("Index: %s\n%.66c\n", zFile, '=');
114 if( !diffBlob ){
115 fossil_print("%s", z);
116 }else{
117 blob_appendf(diffBlob, "%s", z);
118 }
119 fossil_free(z);
120 }
121 }
122
123 /*
124 ** Print the +++/--- filename lines for a diff operation.
125 */
126 void diff_print_filenames(const char *zLeft, const char *zRight,
127 u64 diffFlags, Blob *diffBlob){
128 char *z = 0;
129 if( diffFlags & DIFF_BRIEF ){
130 /* no-op */
131 }else if( diffFlags & DIFF_SIDEBYSIDE ){
132 int w = diff_width(diffFlags);
@@ -142,11 +147,15 @@
147 (w-n2)/2, '=', n2, zRight, (w-n2+1)/2, '=');
148 }
149 }else{
150 z = mprintf("--- %s\n+++ %s\n", zLeft, zRight);
151 }
152 if( !diffBlob ){
153 fossil_print("%s", z);
154 }else{
155 blob_appendf(diffBlob, "%s", z);
156 }
157 fossil_free(z);
158 }
159
160 /*
161 ** Show the difference between two files, one in memory and one on disk.
@@ -171,11 +180,12 @@
180 const char *zName, /* Display name of the file */
181 const char *zDiffCmd, /* Command for comparison */
182 const char *zBinGlob, /* Treat file names matching this as binary */
183 int fIncludeBinary, /* Include binary files for external diff */
184 u64 diffFlags, /* Flags to control the diff */
185 int fSwapDiff, /* Diff from Zfile2 to Pfile1 */
186 Blob *diffBlob /* Blob to store diff output */
187 ){
188 if( zDiffCmd==0 ){
189 Blob out; /* Diff output text */
190 Blob file2; /* Content of zFile2 */
191 const char *zName2; /* Name of zFile2 for display */
@@ -201,14 +211,23 @@
211 }else{
212 text_diff(pFile1, &file2, &out, 0, diffFlags);
213 }
214 if( blob_size(&out) ){
215 if( diffFlags & DIFF_NUMSTAT ){
216 if( !diffBlob ){
217 fossil_print("%s %s\n", blob_str(&out), zName);
218 }else{
219 blob_appendf(diffBlob, "%s %s\n", blob_str(&out), zName);
220 }
221 }else{
222 if( !diffBlob ){
223 diff_print_filenames(zName, zName2, diffFlags, 0);
224 fossil_print("%s\n", blob_str(&out));
225 }else{
226 diff_print_filenames(zName, zName2, diffFlags, diffBlob);
227 blob_appendf(diffBlob, "%s\n", blob_str(&out));
228 }
229 }
230 }
231 blob_reset(&out);
232 }
233
@@ -302,11 +321,11 @@
321 blob_zero(&out);
322 text_diff(pFile1, pFile2, &out, 0, diffFlags);
323 if( diffFlags & DIFF_NUMSTAT ){
324 fossil_print("%s %s\n", blob_str(&out), zName);
325 }else{
326 diff_print_filenames(zName, zName, diffFlags, 0);
327 fossil_print("%s\n", blob_str(&out));
328 }
329
330 /* Release memory resources */
331 blob_reset(&out);
@@ -366,17 +385,18 @@
385 **
386 ** When using an external diff program, zBinGlob contains the GLOB patterns
387 ** for file names to treat as binary. If fIncludeBinary is zero, these files
388 ** will be skipped in addition to files that may contain binary content.
389 */
390 void diff_against_disk(
391 const char *zFrom, /* Version to difference from */
392 const char *zDiffCmd, /* Use this diff command. NULL for built-in */
393 const char *zBinGlob, /* Treat file names matching this as binary */
394 int fIncludeBinary, /* Treat file names matching this as binary */
395 u64 diffFlags, /* Flags controlling diff output */
396 FileDirList *pFileDir, /* Which files to diff */
397 Blob *diffBlob /* Blob to output diff instead of stdout */
398 ){
399 int vid;
400 Blob sql;
401 Stmt q;
402 int asNewFile; /* Treat non-existant files as empty files */
@@ -467,24 +487,24 @@
487 }
488 if( showDiff ){
489 Blob content;
490 int isBin;
491 if( !isLink != !file_islink(zFullName) ){
492 diff_print_index(zPathname, diffFlags, 0);
493 diff_print_filenames(zPathname, zPathname, diffFlags, 0);
494 fossil_print("%s",DIFF_CANNOT_COMPUTE_SYMLINK);
495 continue;
496 }
497 if( srcid>0 ){
498 content_get(srcid, &content);
499 }else{
500 blob_zero(&content);
501 }
502 isBin = fIncludeBinary ? 0 : looks_like_binary(&content);
503 diff_print_index(zPathname, diffFlags, diffBlob);
504 diff_file(&content, isBin, zFullName, zPathname, zDiffCmd,
505 zBinGlob, fIncludeBinary, diffFlags, 0, diffBlob);
506 blob_reset(&content);
507 }
508 blob_reset(&fname);
509 }
510 db_finalize(&q);
@@ -517,11 +537,11 @@
537 const char *zFile = (const char*)db_column_text(&q, 0);
538 if( !file_dir_match(pFileDir, zFile) ) continue;
539 zFullName = mprintf("%s%s", g.zLocalRoot, zFile);
540 db_column_blob(&q, 1, &content);
541 diff_file(&content, 0, zFullName, zFile,
542 zDiffCmd, zBinGlob, fIncludeBinary, diffFlags, 0, 0);
543 fossil_free(zFullName);
544 blob_reset(&content);
545 }
546 db_finalize(&q);
547 }
@@ -555,11 +575,11 @@
575 zName = pTo->zName;
576 }else{
577 zName = DIFF_NO_NAME;
578 }
579 if( diffFlags & DIFF_BRIEF ) return;
580 diff_print_index(zName, diffFlags, 0);
581 if( pFrom ){
582 rid = uuid_to_rid(pFrom->zUuid, 0);
583 content_get(rid, &f1);
584 }else{
585 blob_zero(&f1);
@@ -804,12 +824,13 @@
824 ** The "-i" command-line option forces the use of the internal diff logic
825 ** rather than any external diff program that might be configured using
826 ** the "setting" command. If no external diff program is configured, then
827 ** the "-i" option is a no-op. The "-i" option converts "gdiff" into "diff".
828 **
829 ** The "-v" or "--verbose" option causes the complete text of added or
830 ** deleted files to be displayed. -N and --new-file are aliases for
831 ** verbose mode.
832 **
833 ** The "--diff-binary" option enables or disables the inclusion of binary files
834 ** when using an external diff program.
835 **
836 ** The "--binary" option causes files matching the glob PATTERN to be treated
@@ -821,26 +842,26 @@
842 ** as binary
843 ** --branch BRANCH Show diff of all changes on BRANCH
844 ** --brief Show filenames only
845 ** --checkin VERSION Show diff of all changes in VERSION
846 ** --command PROG External diff program. Overrides "diff-command"
847 ** -c|--context N Use N lines of context
848 ** --diff-binary BOOL Include binary files with external commands
849 ** --exec-abs-paths Force absolute path names on external commands
850 ** --exec-rel-paths Force relative path names on external commands
851 ** -r|--from VERSION Select VERSION as source for the diff
852 ** -i|--internal Use internal diff logic
 
853 ** --numstat Show only the number of lines delete and added
854 ** -y|--side-by-side Side-by-side diff
855 ** --strip-trailing-cr Strip trailing CR
856 ** --tclsh PATH Tcl/Tk used for --tk (default: "tclsh")
857 ** --tk Launch a Tcl/Tk GUI for display
858 ** --to VERSION Select VERSION as target for the diff
859 ** --undo Diff against the "undo" buffer
860 ** --unified Unified diff
861 ** -v|--verbose Output complete text of added or deleted files
862 ** -N|--new-file Alias for --verbose
863 ** -w|--ignore-all-space Ignore white space when comparing lines
864 ** -W|--width N Width of lines in side-by-side diff
865 ** -Z|--ignore-trailing-space Ignore changes to end-of-line whitespace
866 */
867 void diff_cmd(void){
@@ -941,11 +962,11 @@
962 }
963 diff_against_undo(zDiffCmd, zBinGlob, fIncludeBinary,
964 diffFlags, pFileDir);
965 }else if( zTo==0 ){
966 diff_against_disk(zFrom, zDiffCmd, zBinGlob, fIncludeBinary,
967 diffFlags, pFileDir, 0);
968 }else{
969 diff_two_versions(zFrom, zTo, zDiffCmd, zBinGlob, fIncludeBinary,
970 diffFlags, pFileDir);
971 }
972 if( pFileDir ){
973
+66 -34
--- src/dispatch.c
+++ src/dispatch.c
@@ -532,45 +532,14 @@
532532
blob_append(pText, zHelp, i);
533533
}
534534
}
535535
536536
/*
537
-** COMMAND: test-all-help
538
-**
539
-** Usage: %fossil test-all-help ?OPTIONS?
540
-**
541
-** Show help text for commands and pages. Useful for proof-reading.
542
-** Defaults to just the CLI commands. Specify --www to see only the
543
-** web pages, or --everything to see both commands and pages.
544
-**
545
-** Options:
546
-** -e|--everything Show all commands and pages.
547
-** -t|--test Include test- commands
548
-** -w|--www Show WWW pages.
549
-** -s|--settings Show settings.
550
-** -h|--html Transform output to HTML.
551
-** -r|--raw No output formatting.
537
+** Display help for all commands based on provided flags.
552538
*/
553
-void test_all_help_cmd(void){
539
+static void display_all_help(int mask, int useHtml, int rawOut){
554540
int i;
555
- int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER;
556
- int useHtml = find_option("html","h",0)!=0;
557
- int rawOut = find_option("raw","r",0)!=0;
558
-
559
- if( find_option("www","w",0) ){
560
- mask = CMDFLAG_WEBPAGE;
561
- }
562
- if( find_option("everything","e",0) ){
563
- mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
564
- CMDFLAG_SETTING | CMDFLAG_TEST;
565
- }
566
- if( find_option("settings","s",0) ){
567
- mask = CMDFLAG_SETTING;
568
- }
569
- if( find_option("test","t",0) ){
570
- mask |= CMDFLAG_TEST;
571
- }
572541
if( useHtml ) fossil_print("<!--\n");
573542
fossil_print("Help text for:\n");
574543
if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n");
575544
if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n");
576545
if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n");
@@ -608,10 +577,48 @@
608577
}else{
609578
fossil_print("---\n");
610579
}
611580
version_cmd();
612581
}
582
+
583
+/*
584
+** COMMAND: test-all-help
585
+**
586
+** Usage: %fossil test-all-help ?OPTIONS?
587
+**
588
+** Show help text for commands and pages. Useful for proof-reading.
589
+** Defaults to just the CLI commands. Specify --www to see only the
590
+** web pages, or --everything to see both commands and pages.
591
+**
592
+** Options:
593
+** -e|--everything Show all commands and pages.
594
+** -t|--test Include test- commands
595
+** -w|--www Show WWW pages.
596
+** -s|--settings Show settings.
597
+** -h|--html Transform output to HTML.
598
+** -r|--raw No output formatting.
599
+*/
600
+void test_all_help_cmd(void){
601
+ int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER;
602
+ int useHtml = find_option("html","h",0)!=0;
603
+ int rawOut = find_option("raw","r",0)!=0;
604
+
605
+ if( find_option("www","w",0) ){
606
+ mask = CMDFLAG_WEBPAGE;
607
+ }
608
+ if( find_option("everything","e",0) ){
609
+ mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
610
+ CMDFLAG_SETTING | CMDFLAG_TEST;
611
+ }
612
+ if( find_option("settings","s",0) ){
613
+ mask = CMDFLAG_SETTING;
614
+ }
615
+ if( find_option("test","t",0) ){
616
+ mask |= CMDFLAG_TEST;
617
+ }
618
+ display_all_help(mask, useHtml, rawOut);
619
+}
613620
614621
/*
615622
** Count the number of entries in the aCommand[] table that match
616623
** the given flag.
617624
*/
@@ -1025,10 +1032,14 @@
10251032
** -o|--options List command-line options common to all commands
10261033
** -s|--setting List setting names
10271034
** -t|--test List unsupported "test" commands
10281035
** -x|--aux List only auxiliary commands
10291036
** -w|--www List all web pages
1037
+** -f|--full List full set of commands (including auxiliary
1038
+** and unsupported "test" commands), options,
1039
+** settings, and web pages
1040
+** -e|--everything List all help on all topics
10301041
**
10311042
** These options can be used when TOPIC is present:
10321043
**
10331044
** -h|--html Format output as HTML rather than plain text
10341045
** -c|--commands Restrict TOPIC search to commands
@@ -1055,11 +1066,11 @@
10551066
}
10561067
if( find_option("options","o",0) ){
10571068
fossil_print("%s", zOptions);
10581069
return;
10591070
}
1060
- if( find_option("all","a",0) ){
1071
+ else if( find_option("all","a",0) ){
10611072
command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER);
10621073
return;
10631074
}
10641075
else if( find_option("www","w",0) ){
10651076
command_list(0, CMDFLAG_WEBPAGE);
@@ -1074,10 +1085,31 @@
10741085
return;
10751086
}
10761087
else if( find_option("setting","s",0) ){
10771088
command_list(0, CMDFLAG_SETTING);
10781089
return;
1090
+ }
1091
+ else if( find_option("full","f",0) ){
1092
+ fossil_print("fossil commands:\n\n");
1093
+ command_list(0, CMDFLAG_1ST_TIER);
1094
+ fossil_print("\nfossil auxiliary commands:\n\n");
1095
+ command_list(0, CMDFLAG_2ND_TIER);
1096
+ fossil_print("\n%s", zOptions);
1097
+ fossil_print("\nfossil settings:\n\n");
1098
+ command_list(0, CMDFLAG_SETTING);
1099
+ fossil_print("\nfossil web pages:\n\n");
1100
+ command_list(0, CMDFLAG_WEBPAGE);
1101
+ fossil_print("\nfossil test commands (unsupported):\n\n");
1102
+ command_list(0, CMDFLAG_TEST);
1103
+ fossil_print("\n");
1104
+ version_cmd();
1105
+ return;
1106
+ }
1107
+ else if( find_option("everything","e",0) ){
1108
+ display_all_help(CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
1109
+ CMDFLAG_SETTING | CMDFLAG_TEST, 0, 0);
1110
+ return;
10791111
}
10801112
useHtml = find_option("html","h",0)!=0;
10811113
isPage = ('/' == *g.argv[2]) ? 1 : 0;
10821114
if(isPage){
10831115
zCmdOrPage = "page";
10841116
--- src/dispatch.c
+++ src/dispatch.c
@@ -532,45 +532,14 @@
532 blob_append(pText, zHelp, i);
533 }
534 }
535
536 /*
537 ** COMMAND: test-all-help
538 **
539 ** Usage: %fossil test-all-help ?OPTIONS?
540 **
541 ** Show help text for commands and pages. Useful for proof-reading.
542 ** Defaults to just the CLI commands. Specify --www to see only the
543 ** web pages, or --everything to see both commands and pages.
544 **
545 ** Options:
546 ** -e|--everything Show all commands and pages.
547 ** -t|--test Include test- commands
548 ** -w|--www Show WWW pages.
549 ** -s|--settings Show settings.
550 ** -h|--html Transform output to HTML.
551 ** -r|--raw No output formatting.
552 */
553 void test_all_help_cmd(void){
554 int i;
555 int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER;
556 int useHtml = find_option("html","h",0)!=0;
557 int rawOut = find_option("raw","r",0)!=0;
558
559 if( find_option("www","w",0) ){
560 mask = CMDFLAG_WEBPAGE;
561 }
562 if( find_option("everything","e",0) ){
563 mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
564 CMDFLAG_SETTING | CMDFLAG_TEST;
565 }
566 if( find_option("settings","s",0) ){
567 mask = CMDFLAG_SETTING;
568 }
569 if( find_option("test","t",0) ){
570 mask |= CMDFLAG_TEST;
571 }
572 if( useHtml ) fossil_print("<!--\n");
573 fossil_print("Help text for:\n");
574 if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n");
575 if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n");
576 if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n");
@@ -608,10 +577,48 @@
608 }else{
609 fossil_print("---\n");
610 }
611 version_cmd();
612 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
614 /*
615 ** Count the number of entries in the aCommand[] table that match
616 ** the given flag.
617 */
@@ -1025,10 +1032,14 @@
1025 ** -o|--options List command-line options common to all commands
1026 ** -s|--setting List setting names
1027 ** -t|--test List unsupported "test" commands
1028 ** -x|--aux List only auxiliary commands
1029 ** -w|--www List all web pages
 
 
 
 
1030 **
1031 ** These options can be used when TOPIC is present:
1032 **
1033 ** -h|--html Format output as HTML rather than plain text
1034 ** -c|--commands Restrict TOPIC search to commands
@@ -1055,11 +1066,11 @@
1055 }
1056 if( find_option("options","o",0) ){
1057 fossil_print("%s", zOptions);
1058 return;
1059 }
1060 if( find_option("all","a",0) ){
1061 command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER);
1062 return;
1063 }
1064 else if( find_option("www","w",0) ){
1065 command_list(0, CMDFLAG_WEBPAGE);
@@ -1074,10 +1085,31 @@
1074 return;
1075 }
1076 else if( find_option("setting","s",0) ){
1077 command_list(0, CMDFLAG_SETTING);
1078 return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1079 }
1080 useHtml = find_option("html","h",0)!=0;
1081 isPage = ('/' == *g.argv[2]) ? 1 : 0;
1082 if(isPage){
1083 zCmdOrPage = "page";
1084
--- src/dispatch.c
+++ src/dispatch.c
@@ -532,45 +532,14 @@
532 blob_append(pText, zHelp, i);
533 }
534 }
535
536 /*
537 ** Display help for all commands based on provided flags.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538 */
539 static void display_all_help(int mask, int useHtml, int rawOut){
540 int i;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541 if( useHtml ) fossil_print("<!--\n");
542 fossil_print("Help text for:\n");
543 if( mask & CMDFLAG_1ST_TIER ) fossil_print(" * Commands\n");
544 if( mask & CMDFLAG_2ND_TIER ) fossil_print(" * Auxiliary commands\n");
545 if( mask & CMDFLAG_TEST ) fossil_print(" * Test commands\n");
@@ -608,10 +577,48 @@
577 }else{
578 fossil_print("---\n");
579 }
580 version_cmd();
581 }
582
583 /*
584 ** COMMAND: test-all-help
585 **
586 ** Usage: %fossil test-all-help ?OPTIONS?
587 **
588 ** Show help text for commands and pages. Useful for proof-reading.
589 ** Defaults to just the CLI commands. Specify --www to see only the
590 ** web pages, or --everything to see both commands and pages.
591 **
592 ** Options:
593 ** -e|--everything Show all commands and pages.
594 ** -t|--test Include test- commands
595 ** -w|--www Show WWW pages.
596 ** -s|--settings Show settings.
597 ** -h|--html Transform output to HTML.
598 ** -r|--raw No output formatting.
599 */
600 void test_all_help_cmd(void){
601 int mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER;
602 int useHtml = find_option("html","h",0)!=0;
603 int rawOut = find_option("raw","r",0)!=0;
604
605 if( find_option("www","w",0) ){
606 mask = CMDFLAG_WEBPAGE;
607 }
608 if( find_option("everything","e",0) ){
609 mask = CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
610 CMDFLAG_SETTING | CMDFLAG_TEST;
611 }
612 if( find_option("settings","s",0) ){
613 mask = CMDFLAG_SETTING;
614 }
615 if( find_option("test","t",0) ){
616 mask |= CMDFLAG_TEST;
617 }
618 display_all_help(mask, useHtml, rawOut);
619 }
620
621 /*
622 ** Count the number of entries in the aCommand[] table that match
623 ** the given flag.
624 */
@@ -1025,10 +1032,14 @@
1032 ** -o|--options List command-line options common to all commands
1033 ** -s|--setting List setting names
1034 ** -t|--test List unsupported "test" commands
1035 ** -x|--aux List only auxiliary commands
1036 ** -w|--www List all web pages
1037 ** -f|--full List full set of commands (including auxiliary
1038 ** and unsupported "test" commands), options,
1039 ** settings, and web pages
1040 ** -e|--everything List all help on all topics
1041 **
1042 ** These options can be used when TOPIC is present:
1043 **
1044 ** -h|--html Format output as HTML rather than plain text
1045 ** -c|--commands Restrict TOPIC search to commands
@@ -1055,11 +1066,11 @@
1066 }
1067 if( find_option("options","o",0) ){
1068 fossil_print("%s", zOptions);
1069 return;
1070 }
1071 else if( find_option("all","a",0) ){
1072 command_list(0, CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER);
1073 return;
1074 }
1075 else if( find_option("www","w",0) ){
1076 command_list(0, CMDFLAG_WEBPAGE);
@@ -1074,10 +1085,31 @@
1085 return;
1086 }
1087 else if( find_option("setting","s",0) ){
1088 command_list(0, CMDFLAG_SETTING);
1089 return;
1090 }
1091 else if( find_option("full","f",0) ){
1092 fossil_print("fossil commands:\n\n");
1093 command_list(0, CMDFLAG_1ST_TIER);
1094 fossil_print("\nfossil auxiliary commands:\n\n");
1095 command_list(0, CMDFLAG_2ND_TIER);
1096 fossil_print("\n%s", zOptions);
1097 fossil_print("\nfossil settings:\n\n");
1098 command_list(0, CMDFLAG_SETTING);
1099 fossil_print("\nfossil web pages:\n\n");
1100 command_list(0, CMDFLAG_WEBPAGE);
1101 fossil_print("\nfossil test commands (unsupported):\n\n");
1102 command_list(0, CMDFLAG_TEST);
1103 fossil_print("\n");
1104 version_cmd();
1105 return;
1106 }
1107 else if( find_option("everything","e",0) ){
1108 display_all_help(CMDFLAG_1ST_TIER | CMDFLAG_2ND_TIER | CMDFLAG_WEBPAGE |
1109 CMDFLAG_SETTING | CMDFLAG_TEST, 0, 0);
1110 return;
1111 }
1112 useHtml = find_option("html","h",0)!=0;
1113 isPage = ('/' == *g.argv[2]) ? 1 : 0;
1114 if(isPage){
1115 zCmdOrPage = "page";
1116
+31 -15
--- src/doc.c
+++ src/doc.c
@@ -767,34 +767,41 @@
767767
const char *zMime, /* MIME-type */
768768
const char *zDefaultTitle, /* Default title */
769769
const char *zFilename /* Name of the file being rendered */
770770
){
771771
Blob title;
772
+ int isPopup = P("popup")!=0;
772773
blob_init(&title,0,0);
773774
if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){
774775
Blob tail;
775776
style_adunit_config(ADUNIT_RIGHT_OK);
776777
if( wiki_find_title(pBody, &title, &tail) ){
777
- style_header("%s", blob_str(&title));
778
+ if( !isPopup ) style_header("%s", blob_str(&title));
778779
wiki_convert(&tail, 0, WIKI_BUTTONS);
779780
}else{
780
- style_header("%s", zDefaultTitle);
781
+ if( !isPopup ) style_header("%s", zDefaultTitle);
781782
wiki_convert(pBody, 0, WIKI_BUTTONS);
782783
}
783
- document_emit_js();
784
- style_finish_page();
784
+ if( !isPopup ){
785
+ document_emit_js();
786
+ style_finish_page();
787
+ }
785788
}else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){
786789
Blob tail = BLOB_INITIALIZER;
787790
markdown_to_html(pBody, &title, &tail);
788
- if( blob_size(&title)>0 ){
789
- style_header("%s", blob_str(&title));
790
- }else{
791
- style_header("%s", zDefaultTitle);
791
+ if( !isPopup ){
792
+ if( blob_size(&title)>0 ){
793
+ style_header("%s", blob_str(&title));
794
+ }else{
795
+ style_header("%s", zDefaultTitle);
796
+ }
792797
}
793798
convert_href_and_output(&tail);
794
- document_emit_js();
795
- style_finish_page();
799
+ if( !isPopup ){
800
+ document_emit_js();
801
+ style_finish_page();
802
+ }
796803
}else if( fossil_strcmp(zMime, "text/plain")==0 ){
797804
style_header("%s", zDefaultTitle);
798805
@ <blockquote><pre>
799806
@ %h(blob_str(pBody))
800807
@ </pre></blockquote>
@@ -801,14 +808,16 @@
801808
document_emit_js();
802809
style_finish_page();
803810
}else if( fossil_strcmp(zMime, "text/html")==0
804811
&& doc_is_embedded_html(pBody, &title) ){
805812
if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1);
806
- style_header("%s", blob_str(&title));
813
+ if( !isPopup ) style_header("%s", blob_str(&title));
807814
convert_href_and_output(pBody);
808
- document_emit_js();
809
- style_finish_page();
815
+ if( !isPopup ){
816
+ document_emit_js();
817
+ style_finish_page();
818
+ }
810819
}else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){
811820
style_adunit_config(ADUNIT_RIGHT_OK);
812821
style_header("%s", zDefaultTitle);
813822
wiki_render_by_mimetype(pBody, zMime);
814823
style_finish_page();
@@ -867,11 +876,16 @@
867876
** directly from disk and need not be a managed file. For /uv, FILE
868877
** can also be the hash of the unversioned file.
869878
**
870879
** The "ckout" CHECKIN is intended for development - to provide a mechanism
871880
** for looking at what a file will look like using the /doc webpage after
872
-** it gets checked in.
881
+** it gets checked in. Some commands like "fossil ui", "fossil server",
882
+** and "fossil http" accept an argument "--ckout-alias NAME" when allows
883
+** NAME to be understood as an alias for "ckout". On a site with many
884
+** embedded hyperlinks to /doc/trunk/... one can run with "--ckout-alias trunk"
885
+** to simulate what the pending changes will look like after they are
886
+** checked in. The NAME alias is stored in g.zCkoutAlias.
873887
**
874888
** The file extension is used to decide how to render the file.
875889
**
876890
** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki",
877891
** and "FILE/index.md" are tried in that order. If the binary was compiled
@@ -988,11 +1002,13 @@
9881002
"SELECT name FROM unversioned WHERE hash=%Q", zName);
9891003
g.isConst = 1;
9901004
}
9911005
zDfltTitle = zName;
9921006
}
993
- }else if( fossil_strcmp(zCheckin,"ckout")==0 ){
1007
+ }else if( fossil_strcmp(zCheckin,"ckout")==0
1008
+ || fossil_strcmp(zCheckin,g.zCkoutAlias)==0
1009
+ ){
9941010
/* Read from the local checkout */
9951011
char *zFullpath;
9961012
db_must_be_within_tree();
9971013
zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
9981014
if( file_isfile(zFullpath, RepoFILE)
9991015
--- src/doc.c
+++ src/doc.c
@@ -767,34 +767,41 @@
767 const char *zMime, /* MIME-type */
768 const char *zDefaultTitle, /* Default title */
769 const char *zFilename /* Name of the file being rendered */
770 ){
771 Blob title;
 
772 blob_init(&title,0,0);
773 if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){
774 Blob tail;
775 style_adunit_config(ADUNIT_RIGHT_OK);
776 if( wiki_find_title(pBody, &title, &tail) ){
777 style_header("%s", blob_str(&title));
778 wiki_convert(&tail, 0, WIKI_BUTTONS);
779 }else{
780 style_header("%s", zDefaultTitle);
781 wiki_convert(pBody, 0, WIKI_BUTTONS);
782 }
783 document_emit_js();
784 style_finish_page();
 
 
785 }else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){
786 Blob tail = BLOB_INITIALIZER;
787 markdown_to_html(pBody, &title, &tail);
788 if( blob_size(&title)>0 ){
789 style_header("%s", blob_str(&title));
790 }else{
791 style_header("%s", zDefaultTitle);
 
 
792 }
793 convert_href_and_output(&tail);
794 document_emit_js();
795 style_finish_page();
 
 
796 }else if( fossil_strcmp(zMime, "text/plain")==0 ){
797 style_header("%s", zDefaultTitle);
798 @ <blockquote><pre>
799 @ %h(blob_str(pBody))
800 @ </pre></blockquote>
@@ -801,14 +808,16 @@
801 document_emit_js();
802 style_finish_page();
803 }else if( fossil_strcmp(zMime, "text/html")==0
804 && doc_is_embedded_html(pBody, &title) ){
805 if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1);
806 style_header("%s", blob_str(&title));
807 convert_href_and_output(pBody);
808 document_emit_js();
809 style_finish_page();
 
 
810 }else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){
811 style_adunit_config(ADUNIT_RIGHT_OK);
812 style_header("%s", zDefaultTitle);
813 wiki_render_by_mimetype(pBody, zMime);
814 style_finish_page();
@@ -867,11 +876,16 @@
867 ** directly from disk and need not be a managed file. For /uv, FILE
868 ** can also be the hash of the unversioned file.
869 **
870 ** The "ckout" CHECKIN is intended for development - to provide a mechanism
871 ** for looking at what a file will look like using the /doc webpage after
872 ** it gets checked in.
 
 
 
 
 
873 **
874 ** The file extension is used to decide how to render the file.
875 **
876 ** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki",
877 ** and "FILE/index.md" are tried in that order. If the binary was compiled
@@ -988,11 +1002,13 @@
988 "SELECT name FROM unversioned WHERE hash=%Q", zName);
989 g.isConst = 1;
990 }
991 zDfltTitle = zName;
992 }
993 }else if( fossil_strcmp(zCheckin,"ckout")==0 ){
 
 
994 /* Read from the local checkout */
995 char *zFullpath;
996 db_must_be_within_tree();
997 zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
998 if( file_isfile(zFullpath, RepoFILE)
999
--- src/doc.c
+++ src/doc.c
@@ -767,34 +767,41 @@
767 const char *zMime, /* MIME-type */
768 const char *zDefaultTitle, /* Default title */
769 const char *zFilename /* Name of the file being rendered */
770 ){
771 Blob title;
772 int isPopup = P("popup")!=0;
773 blob_init(&title,0,0);
774 if( fossil_strcmp(zMime, "text/x-fossil-wiki")==0 ){
775 Blob tail;
776 style_adunit_config(ADUNIT_RIGHT_OK);
777 if( wiki_find_title(pBody, &title, &tail) ){
778 if( !isPopup ) style_header("%s", blob_str(&title));
779 wiki_convert(&tail, 0, WIKI_BUTTONS);
780 }else{
781 if( !isPopup ) style_header("%s", zDefaultTitle);
782 wiki_convert(pBody, 0, WIKI_BUTTONS);
783 }
784 if( !isPopup ){
785 document_emit_js();
786 style_finish_page();
787 }
788 }else if( fossil_strcmp(zMime, "text/x-markdown")==0 ){
789 Blob tail = BLOB_INITIALIZER;
790 markdown_to_html(pBody, &title, &tail);
791 if( !isPopup ){
792 if( blob_size(&title)>0 ){
793 style_header("%s", blob_str(&title));
794 }else{
795 style_header("%s", zDefaultTitle);
796 }
797 }
798 convert_href_and_output(&tail);
799 if( !isPopup ){
800 document_emit_js();
801 style_finish_page();
802 }
803 }else if( fossil_strcmp(zMime, "text/plain")==0 ){
804 style_header("%s", zDefaultTitle);
805 @ <blockquote><pre>
806 @ %h(blob_str(pBody))
807 @ </pre></blockquote>
@@ -801,14 +808,16 @@
808 document_emit_js();
809 style_finish_page();
810 }else if( fossil_strcmp(zMime, "text/html")==0
811 && doc_is_embedded_html(pBody, &title) ){
812 if( blob_size(&title)==0 ) blob_append(&title,zFilename,-1);
813 if( !isPopup ) style_header("%s", blob_str(&title));
814 convert_href_and_output(pBody);
815 if( !isPopup ){
816 document_emit_js();
817 style_finish_page();
818 }
819 }else if( fossil_strcmp(zMime, "text/x-pikchr")==0 ){
820 style_adunit_config(ADUNIT_RIGHT_OK);
821 style_header("%s", zDefaultTitle);
822 wiki_render_by_mimetype(pBody, zMime);
823 style_finish_page();
@@ -867,11 +876,16 @@
876 ** directly from disk and need not be a managed file. For /uv, FILE
877 ** can also be the hash of the unversioned file.
878 **
879 ** The "ckout" CHECKIN is intended for development - to provide a mechanism
880 ** for looking at what a file will look like using the /doc webpage after
881 ** it gets checked in. Some commands like "fossil ui", "fossil server",
882 ** and "fossil http" accept an argument "--ckout-alias NAME" when allows
883 ** NAME to be understood as an alias for "ckout". On a site with many
884 ** embedded hyperlinks to /doc/trunk/... one can run with "--ckout-alias trunk"
885 ** to simulate what the pending changes will look like after they are
886 ** checked in. The NAME alias is stored in g.zCkoutAlias.
887 **
888 ** The file extension is used to decide how to render the file.
889 **
890 ** If FILE ends in "/" then the names "FILE/index.html", "FILE/index.wiki",
891 ** and "FILE/index.md" are tried in that order. If the binary was compiled
@@ -988,11 +1002,13 @@
1002 "SELECT name FROM unversioned WHERE hash=%Q", zName);
1003 g.isConst = 1;
1004 }
1005 zDfltTitle = zName;
1006 }
1007 }else if( fossil_strcmp(zCheckin,"ckout")==0
1008 || fossil_strcmp(zCheckin,g.zCkoutAlias)==0
1009 ){
1010 /* Read from the local checkout */
1011 char *zFullpath;
1012 db_must_be_within_tree();
1013 zFullpath = mprintf("%s/%s", g.zLocalRoot, zName);
1014 if( file_isfile(zFullpath, RepoFILE)
1015
+3 -3
--- src/event.c
+++ src/event.c
@@ -271,18 +271,18 @@
271271
free(zDate);
272272
273273
zETime[10] = 'T';
274274
blob_appendf(&event, "E %s %s\n", zETime, zId);
275275
zETime[10] = ' ';
276
+ if( zMimetype && zMimetype[0] ){
277
+ blob_appendf(&event, "N %s\n", zMimetype);
278
+ }
276279
if( rid ){
277280
char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
278281
blob_appendf(&event, "P %s\n", zUuid);
279282
free(zUuid);
280283
}
281
- if( zMimetype && zMimetype[0] ){
282
- blob_appendf(&event, "N %s\n", zMimetype);
283
- }
284284
if( zClr && zClr[0] ){
285285
blob_appendf(&event, "T +bgcolor * %F\n", zClr);
286286
}
287287
if( zTags && zTags[0] ){
288288
Blob tags, one;
289289
--- src/event.c
+++ src/event.c
@@ -271,18 +271,18 @@
271 free(zDate);
272
273 zETime[10] = 'T';
274 blob_appendf(&event, "E %s %s\n", zETime, zId);
275 zETime[10] = ' ';
 
 
 
276 if( rid ){
277 char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
278 blob_appendf(&event, "P %s\n", zUuid);
279 free(zUuid);
280 }
281 if( zMimetype && zMimetype[0] ){
282 blob_appendf(&event, "N %s\n", zMimetype);
283 }
284 if( zClr && zClr[0] ){
285 blob_appendf(&event, "T +bgcolor * %F\n", zClr);
286 }
287 if( zTags && zTags[0] ){
288 Blob tags, one;
289
--- src/event.c
+++ src/event.c
@@ -271,18 +271,18 @@
271 free(zDate);
272
273 zETime[10] = 'T';
274 blob_appendf(&event, "E %s %s\n", zETime, zId);
275 zETime[10] = ' ';
276 if( zMimetype && zMimetype[0] ){
277 blob_appendf(&event, "N %s\n", zMimetype);
278 }
279 if( rid ){
280 char *zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
281 blob_appendf(&event, "P %s\n", zUuid);
282 free(zUuid);
283 }
 
 
 
284 if( zClr && zClr[0] ){
285 blob_appendf(&event, "T +bgcolor * %F\n", zClr);
286 }
287 if( zTags && zTags[0] ){
288 Blob tags, one;
289
+9 -6
--- src/export.c
+++ src/export.c
@@ -481,11 +481,11 @@
481481
**
482482
** Options:
483483
** --export-marks FILE export rids of exported data to FILE
484484
** --import-marks FILE read rids of data to ignore from FILE
485485
** --rename-trunk NAME use NAME as name of exported trunk branch
486
-** --repository|-R REPOSITORY export the given REPOSITORY
486
+** -R|--repository REPOSITORY export the given REPOSITORY
487487
**
488488
** See also: import
489489
*/
490490
/*
491491
** COMMAND: export*
@@ -1324,11 +1324,11 @@
13241324
/* Create a new Git repository at zMirror */
13251325
zCmd = mprintf("git init %$", zMirror);
13261326
gitmirror_message(VERB_NORMAL, "%s\n", zCmd);
13271327
rc = fossil_system(zCmd);
13281328
if( rc ){
1329
- fossil_fatal("cannot initialize git repository using: %s\n", zCmd);
1329
+ fossil_fatal("cannot initialize git repository using: %s", zCmd);
13301330
}
13311331
fossil_free(zCmd);
13321332
13331333
/* Must be in the new Git repository directory for subsequent commands */
13341334
rc = file_chdir(zMirror, 0);
@@ -1718,11 +1718,14 @@
17181718
zPushCmd = mprintf("git push --mirror %s", zPushUrl);
17191719
}
17201720
gitmirror_message(VERB_NORMAL, "%s\n", zPushCmd);
17211721
fossil_free(zPushCmd);
17221722
zPushCmd = mprintf("git push --mirror %$", zPushUrl);
1723
- fossil_system(zPushCmd);
1723
+ rc = fossil_system(zPushCmd);
1724
+ if( rc ){
1725
+ fossil_fatal("cannot push content using: %s", zPushCmd);
1726
+ }
17241727
fossil_free(zPushCmd);
17251728
}
17261729
}
17271730
17281731
/*
@@ -1812,20 +1815,20 @@
18121815
** URL is remembered and used on subsequent exports
18131816
** to the same repository. Or if URL is "off" the
18141817
** auto-push mechanism is disabled
18151818
** --debug FILE Write fast-export text to FILE rather than
18161819
** piping it into "git fast-import".
1817
-** --force|-f Do the export even if nothing has changed
1820
+** -f|--force Do the export even if nothing has changed
18181821
** --if-mirrored No-op if the mirror does not already exist.
18191822
** --limit N Add no more than N new check-ins to MIRROR.
18201823
** Useful for debugging
18211824
** --mainbranch NAME Use NAME as the name of the main branch in Git.
18221825
** The "trunk" branch of the Fossil repository is
18231826
** mapped into this name. "master" is used if
18241827
** this option is omitted.
1825
-** --quiet|-q Reduce output. Repeat for even less output.
1826
-** --verbose|-v More output.
1828
+** -q|--quiet Reduce output. Repeat for even less output.
1829
+** -v|--verbose More output.
18271830
**
18281831
** > fossil git import MIRROR
18291832
**
18301833
** TBD...
18311834
**
18321835
--- src/export.c
+++ src/export.c
@@ -481,11 +481,11 @@
481 **
482 ** Options:
483 ** --export-marks FILE export rids of exported data to FILE
484 ** --import-marks FILE read rids of data to ignore from FILE
485 ** --rename-trunk NAME use NAME as name of exported trunk branch
486 ** --repository|-R REPOSITORY export the given REPOSITORY
487 **
488 ** See also: import
489 */
490 /*
491 ** COMMAND: export*
@@ -1324,11 +1324,11 @@
1324 /* Create a new Git repository at zMirror */
1325 zCmd = mprintf("git init %$", zMirror);
1326 gitmirror_message(VERB_NORMAL, "%s\n", zCmd);
1327 rc = fossil_system(zCmd);
1328 if( rc ){
1329 fossil_fatal("cannot initialize git repository using: %s\n", zCmd);
1330 }
1331 fossil_free(zCmd);
1332
1333 /* Must be in the new Git repository directory for subsequent commands */
1334 rc = file_chdir(zMirror, 0);
@@ -1718,11 +1718,14 @@
1718 zPushCmd = mprintf("git push --mirror %s", zPushUrl);
1719 }
1720 gitmirror_message(VERB_NORMAL, "%s\n", zPushCmd);
1721 fossil_free(zPushCmd);
1722 zPushCmd = mprintf("git push --mirror %$", zPushUrl);
1723 fossil_system(zPushCmd);