Fossil

Timeline
Login

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

60 check-ins using file src/main.c version 90c5da7a7d

2013-03-14
13:51
LOOK_LENGTH flags only has meaning when LOOK_NUL is not set. check-in: 8923e06cea user: jan.nijtmans tags: trunk
12:11
Simplify many if() expressions. Use the fact that if the last char in a file is CR, it cannot be followed by a LF any more. This way we don't need to verify the value of 'n' (number of characters remaining) any more. check-in: bd1dcc1c52 user: jan.nijtmans tags: trunk
10:33
Fix detection of LOOK_LONE_CR/LOOK_LONE_LF for the first byte/character of the file. Fix off-by-one error in utf8 LOOK_LONE_CR detection, which could access one byte past the blob. Simplify the code, making use of the know relation between some LOOK_XXX flags. check-in: ce9d6abea2 user: jan.nijtmans tags: trunk
2013-03-13
15:03
merge trunk Closed-Leaf check-in: 9263d4c2c3 user: jan.nijtmans tags: bomRefactor
14:52
make expected "utf-check" parameters less cryptic check-in: 5a9f855810 user: jan.nijtmans tags: trunk
13:44
remove debug code check-in: 7ef1890c19 user: jan.nijtmans tags: bomRefactor
13:37
merge trunk check-in: 3718383e5c user: jan.nijtmans tags: bomRefactor
12:13
merge trunk check-in: 515feb5697 user: jan.nijtmans tags: clean-with-ignore
01:22
Update the built-in SQLite to the latest 3.7.16 beta from upstream. check-in: f803d534d0 user: drh tags: trunk
2013-03-12
22:37
Modify the looks_like_utf*() functions to detect lone CR and LF characters and set new output flags accordingly. check-in: 7dee903839 user: mistachkin tags: trunk
16:01
add .lib, remove some unneeded entries check-in: 124aad1864 user: jan.nijtmans tags: clean-with-ignore
15:54
fix "fossil clean --test" check-in: ca5903240d user: jan.nijtmans tags: clean-with-ignore
15:48
Add --keep option to "fossil clean", and versionable "keep-glob" setting check-in: 6c72cab73c user: jan.nijtmans tags: clean-with-ignore
15:30
Fix "fossil clean --test" not to remove files. check-in: 1c8efa5cab user: jan.nijtmans tags: trunk
12:48
merge trunk check-in: b72908bc5b user: jan.nijtmans tags: clean-with-ignore
12:00
Fix determination of LOOK_CR/LOOK_LF to include the first character in the file, eliminating overlap with LOOK_CRLF. This way, inconsistant line endings can be determined by verifying that at most one of the flags LOOK_CR/LOOK_LF/LOOK_CRLF may be set. Test cases adapted accordingly. check-in: c1d3526741 user: jan.nijtmans tags: trunk
10:31
merge trunk check-in: 0a93bf105a user: jan.nijtmans tags: improve_commit_warning
2013-03-11
21:40
Bring in the latest SQLite version 3.7.16 beta from upstream for testing. check-in: d586f2edfc user: drh tags: trunk
15:37
Combine looks_like_utf8/looks_like_utf16 to a single looks_like_utf function, which can be used in both checkin.c and utf.test. This assures that utf.test really checks the same thing as checkin.c is using. check-in: e42ea98f95 user: jan.nijtmans tags: bomRefactor
07:51
Prototype for a TH1 regexp command. Closed-Leaf check-in: be4a6630a6 user: mistachkin tags: th1RegExp
2013-03-10
13:32
Add possible 'a=all' response to "fossil clean" check-in: 5f4881d421 user: jan.nijtmans tags: trunk
10:09
Add possible 'a=all' response to "fossil clean", and print out which files actually are removed. check-in: 3a2c433aa4 user: jan.nijtmans tags: clean-with-ignore
09:57
Change behavior of "fossil clean --ignore": The ignore setting now specifies which files can be removed without confirmation Add versionable "ignore-glob" setting for fossil, in order to demonstrate the desired behavior. check-in: 5a3855f68b user: jan.nijtmans tags: clean-with-ignore
09:23
Skip running the Tcl integration tests if Fossil was not compiled with Tcl integration support. check-in: 6c47a16e5d user: mistachkin tags: trunk
01:36
Add UTF detection tests for the LOOK_ODD flag. check-in: c58b815f2b user: mistachkin tags: trunk
00:18
Style and comment fixes. check-in: 4368611ba8 user: mistachkin tags: trunk
2013-03-08
13:02
merge trunk check-in: 17e972c318 user: jan.nijtmans tags: improve_commit_warning
11:56
merge trunk Closed-Leaf check-in: 8be674a133 user: jan.nijtmans tags: bomRefactor
09:15
Fix crnl-warning for file which starts with þÿ or ÿþ (latin-1) and has an odd number of bytes. check-in: 25eec8cfaf user: jan.nijtmans tags: trunk
02:18
Make it easier to correlate the UTF detection test results with the byte-order-mark and data used to produce them. check-in: 70d15c8104 user: mistachkin tags: trunk
00:46
In the test for the UTF-8/UTF-16 detection functions, use the right byte-order-mark for the endianness of the machine. check-in: 05ac588496 user: mistachkin tags: trunk
00:09
Revise the looks_like_utf16() function so that it can handle blobs with an odd number of bytes and still set all the applicable output flags. Add tests for the UTF-8/UTF-16 detection functions. check-in: e3ae41483d user: mistachkin tags: trunk
2013-03-07
22:26
Detect overlong and nul-bytes for files starting with utf-16 BOM but with odd number of bytes. Closed-Leaf check-in: 14019cb0e2 user: jan.nijtmans tags: bomRefactor
12:35
Somewhat better layout: Putting text-field title first, above the text-field. Closed-Leaf check-in: 3546a84c1f user: jan.nijtmans tags: ticket-2cfd96b2ba
11:00
merge trunk check-in: f96894a54a user: jan.nijtmans tags: ticket-2cfd96b2ba
10:19
merge-mark trunk check-in: 9baee7e90f user: jan.nijtmans tags: bomRefactor
10:16
Fix gcc warning, and add test-case (which fails in current trunk) check-in: c53b128f15 user: jan.nijtmans tags: bomRefactor
09:56
Since the blob size is unsigned, looks_like_utf16() cannot easily process the content if the size is not even. check-in: 32b8fc7dcd user: mistachkin tags: trunk
09:21
Better comment. check-in: 2237e34377 user: jan.nijtmans tags: bomRefactor
08:54
Forgot to remove the odd bytes check, and fixed comment. check-in: b5a3f0b48a user: jan.nijtmans tags: bomRefactor
08:21
If the blob has an odd number of bytes, it means that the content of the file cannot be interpreted as UTF-16 characters. So, starts_with_utf16_bom() should return false and looks_like_utf16() shouldn't even be called. The flag LOOK_ODD makes no sense in starts_with_utf16_bom(). check-in: 7b0b7ec87d user: jan.nijtmans tags: bomRefactor
01:27
Add support for detecting standalone carriage-return characters via the looks_like_utf*() functions. check-in: 6c7185d9ba user: mistachkin tags: trunk
01:14
Fix typo in comments. check-in: 30e4e3e25d user: mistachkin tags: trunk
01:12
For the looks_like_utf*() functions, continue to examine blob content in order to fully set the output flags, even if it appears to be binary. Also, increase the strictness of starts_with_utf16_bom() and make it more accurate. check-in: 13fac7f74a user: mistachkin tags: trunk
2013-03-06
20:53
Enhance the GLOB processing on settings like binary-glob so that any sequence of commas and/or whitespace serves as a delimiter. Delimiters inside of quotes are part the glob pattern and are ignored. Enhance the test-glob command to verify correct operation of the globber. check-in: a93b58cf83 user: drh tags: trunk
20:50
Enhancements to the test-glob command for better testing of the setting globber. Closed-Leaf check-in: ad44353d90 user: drh tags: globListRefactor
20:46
Modify the commit_warning() function so the warning for possible binary content is higher priority than the other warnings. check-in: 2d9ae4ee73 user: mistachkin tags: trunk
20:27
Add the test-looks-like-utf test command to help test the looks_like_utf*() and related functions. check-in: 08b96cedee user: mistachkin tags: trunk
15:40
merge trunk Closed-Leaf check-in: 820f64320b user: jan.nijtmans tags: fix-test-move-repository
15:33
fix commit dialog (problem is introduced in [30a63b8b66]) for files containing crlf or long lines followed by nul byte. test-case: $ tclsh8.6 % set f [open abc w];fconfigure $f -translation binary;puts -nonewline $f \r\n\0;close $f;exit $ fossil add abc ADDED abc $ fossil commit --test ./abc contains CR/NL line endings. Use --no-warnings or the "crnl-glob" setting to disable this warning. Commit anyhow (a=all/c=convert/y/N)? n After correction: $ ./fossil commit --test ./abc contains binary data. Use --no-warnings or the "binary-glob" setting to disable this warning. Commit anyhow (a=all/y/N)? n check-in: af0ca3b4eb user: jan.nijtmans tags: trunk
14:40
merge trunk check-in: 7aa9f66f92 user: jan.nijtmans tags: fix-test-move-repository
12:58
(experimental) fix for [2cfd96b2ba] check-in: 949976e065 user: jan.nijtmans tags: ticket-2cfd96b2ba
11:30
Locate the local checkout database even if it is read-only. check-in: f7b355b311 user: drh tags: trunk
10:16
In db_open_local() check writability of local-db itself in stead of the directory it is in. This should enable fossil checkouts on NFS-mounts, which sometimes lie about writability of directories. check-in: beb91c9163 user: jan.nijtmans tags: trunk
09:28
Fix gcc-4.7.2 warning: src/md5.c: In functie 'MD5Final': src/md5.c:263:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] src/md5.c:264:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] check-in: 98fd649a9a user: jan.nijtmans tags: trunk
07:50
Refactor the looks_like_utf*() functions to use a single output flags argument to convey the various pieces of blob status information. check-in: 30a63b8b66 user: mistachkin tags: trunk
06:58
Refactor the glob list handling code and add some tests. check-in: 1b6c39c1aa user: mistachkin tags: globListRefactor
02:18
Allow newlines to serve as separators for multiple glob strings in the binary-glob setting (and in any other setting that accepts a list of glob patterns). Fix for ticket [ed23ef59cf0fb] check-in: 0e5f0da7eb user: drh tags: trunk
02:15
Update the built-in SQLite to the latest 3.7.16 beta from upstream. check-in: 6e460c3427 user: drh tags: trunk
2013-03-05
12:25
style: use g.zConfigDbName in stead of g.configDbName, as all other strings. check-in: a5dc5332d4 user: jan.nijtmans tags: trunk