Fossil with Commonmark

All files named "src/file.c"
Login

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

History for src/file.c

2017-12-04
13:52
Fix typos in comments. file: [d1d99096ad] check-in: [6d0d1f7167] user: drh branch: trunk, size: 45556
2017-11-30
18:07
Fix a bug in the "fossil add" command that prevented the adding of symbolic links. file: [8b0de07579] check-in: [b259473846] user: drh branch: symlink-refactor, size: 45551
17:58
Refactor the symlink processing logic so that most of the file access routines take a new parameter indicating the conditions under which symlinks should and should not be followed. This should fix a few bugs related to symlink processing. Lots of testing required before merging to trunk. file: [ee400f3820] check-in: [e7767de263] user: drh branch: symlink-refactor, size: 45781
12:55
Add the --allow-symlinks option to the test-file-environment command. file: [d747a614ca] check-in: [cf1960e913] user: drh branch: trunk, size: 44170
05:09
Still more improvements to the test-file-environment command. file: [f7988d9d9a] check-in: [8434738204] user: drh branch: trunk, size: 43952
04:48
Improvements to the test-file-environment command. file: [d7ba27a166] check-in: [fdc6af2315] user: drh branch: trunk, size: 43430
2017-09-20
13:35
Remove dead code to fix harmless compiler warnings. file: [8e7a44e448] check-in: [4c666ccf92] user: drh branch: trunk, size: 43009
2017-08-30
12:02
Remove the --no-dir-symlinks option. This is a back-out of check-in [2375d6cbce933267] together with other cleanup changes. file: [dcb3d4d22b] check-in: [b7272185ca] user: drh branch: trunk, size: 43012
2017-08-23
17:53
Change the file_mkfolder() implementation to assume that the folder already exists and only go about creating it and its path if it does not previously exit. file: [24f02e1c11] check-in: [92ea61837e] user: drh branch: trunk, size: 43534
17:38
Remove a redundant directory separator character from the temporary filenames generated on windows. file: [5142100e5c] check-in: [b5f0d70362] user: drh branch: trunk, size: 43774
17:29
Add the test-tempname command for testing the file_tempname() routine. file: [75129fc64a] check-in: [f1d23f04c0] user: drh branch: trunk, size: 43635
17:18
For temporary filename paths on Windows, changes all backslash characters into forward slashes, so that the new enhanced-security shell escape mechanism from check-in [3b191c98] can use those temporary filenames. file: [ad3216e93d] check-in: [e474c177df] user: drh branch: trunk, size: 43307
2017-05-29
17:02
Use a standard .txt extension for temporary files and avoid double dots in file name. file: [a8c25562e3] check-in: [51058ce141] user: andybradford branch: amend-regress, size: 43088
2017-05-26
05:55
Remove the restriction entirely for editing a comment only in the working check-out directory and choose an appropriate temporary file if no working check-out is available instead. file: [5bdec9cc57] check-in: [74df777e34] user: andybradford branch: amend-regress, size: 43084
2017-04-23
13:08
merge trunk. Use new Win10 flag: SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE. See: [https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/#Y9sMOye6Y8vVYmDx.97] for why this might make this branch work better. file: [305a81f25e] check-in: [2999c7dc8a] user: jan.nijtmans branch: winsymlink, size: 45154
2017-03-21
13:21
Add the --symlink option to test-file-environment. file: [c77e7c7383] check-in: [e583068713] user: drh branch: trunk, size: 42962
2017-02-14
01:03
When the --reset option is used, reset the cached stat() information before and after dealing with it. file: [7570da01a8] check-in: [39ea7a2f61] user: mistachkin branch: symlinks, size: 42707
00:59
Add '--reset' option to the file test commands. Other minor improvements. file: [1053ee9618] check-in: [996ebab71b] user: mistachkin branch: symlinks, size: 42678
00:40
Report the effective file mode bits also. file: [0afba9c327] check-in: [7972e19f77] user: mistachkin branch: symlinks, size: 42043
00:30
Modularize and enhance the file test commands. file: [641375a34e] check-in: [834a5b6189] user: mistachkin branch: symlinks, size: 41551
00:13
Further enhancements. file: [f561ef9c85] check-in: [a3409470aa] user: mistachkin branch: symlinks, size: 41249
00:03
Enhance verbosity of the new 'test-file-environment' command. file: [7c1f0850bb] check-in: [804bb55f07] user: mistachkin branch: symlinks, size: 40719
2017-02-13
23:56
Add the 'test-file-environment' test command. file: [47964da1d6] check-in: [c891d86c6c] user: mistachkin branch: symlinks, size: 40253
21:03
Oops, missed one thing in the previous check-in. file: [00c7c69b10] check-in: [b3fc0a133c] user: mistachkin branch: symlinks, size: 38827
21:01
For the '--no-dir-symlinks' flag to be honored when the 'allow-symlinks' setting is disabled, the file_wd_isdir() function must force lstat() to be used. file: [4ba0400d73] check-in: [6c90761bcd] user: mistachkin branch: symlinks, size: 38814
20:10
If the 'allow-symlinks' option is enabled (or the '--no-dir-symlinks' flag is specified), do not traverse into symlinked directories. file: [034660bb25] check-in: [3e949e1761] user: mistachkin branch: symlinks, size: 38455
2017-02-01
04:40
Rename and repurpose '--no-symlinks' into '--no-dir-symlinks', to prevent traversing into symlinked directories. Make the '--verily' option to 'clean' imply '--no-dir-symlinks'. file: [0fae72c98c] check-in: [66406ae942] user: mistachkin branch: noSymlinks, size: 38448
02:42
The file_wd_isdir() function must honor the symlinks options. file: [d3da9d8399] check-in: [de053c778c] user: mistachkin branch: noSymlinks, size: 38506
02:32
Attempt to always enforce the --no-symlinks option. file: [5e48a8b66a] check-in: [35e37e9ba8] user: mistachkin branch: noSymlinks, size: 38483
02:16
Add the --no-symlinks global command line option. file: [acda6dd5cb] check-in: [85277aa3b3] user: mistachkin branch: noSymlinks, size: 38471
2016-12-21
17:50
When calling gdiff (or stash gdiff) command between 2 versions, use the filename to prefix the temporary random filename so once inside the external diff program we know what file is being compared. (pending-review) file: [c8b27a46c0] check-in: [856ca01b13] user: mgagnon branch: gdiff-tmpfilename-prefix, size: 38348
2016-12-02
10:49
Get the "fossil all ui" command working on Cygwin where the global_config table has "repo:" entries containing the windows drive letter file: [0cd782064e] check-in: [eb9b2317d5] user: jan.nijtmans branch: trunk, size: 38516
2016-12-01
14:56
Fix the "fossil all ui" command so that it works on Windows. But also comment out some very confused logic in process_on_web_page() that is associated with "--baseurl" option. This logic needs to be fixed prior to merging with trunk. file: [b1212e5d04] check-in: [da1c769cd2] user: drh branch: all-ui, size: 38449
2016-11-04
22:37
Consistently use the count(X) macro in place of sizeof(X)/sizeof(*X) throughout the Fossil core, excluding things that don't use makeheaders. Also use count(X) instead of ArraySize(X) which has the same definition. file: [711bb3151f] check-in: [e5b62edb28] user: andygoth branch: trunk, size: 37989
2016-10-20
16:48
Remove extra newlines from calls to fossil_fatal() file: [71a65cc15c] check-in: [2c42b217e5] user: andygoth branch: trunk, size: 38012
2016-10-05
00:13
Give a better error message when unable to open a file that uses one of the Windows reserved names, like "AUX" or "LPT3". file: [5ef86daddc] check-in: [12c665068d] user: drh branch: trunk, size: 38014
2016-10-01
03:39
Another coding style (whitespace) fix. file: [358fe9d492] check-in: [2ccd046de2] user: mistachkin branch: trunk, size: 36341
2016-09-30
23:47
Start of experimental changes to support directory symlinks. file: [162fb1c54d] check-in: [d6debf638c] user: mistachkin branch: dirSymlinks, size: 36880
2016-08-19
00:13
Use the new SQLITE_DBCONFIG_MAINDBNAME feature of SQLite to eliminate the need for the db_name() hack. file: [c1b31491b3] check-in: [d858f3da52] user: drh branch: omit-db_name, size: 36345
2016-08-10
09:06
Remove unnecessary spacing file: [67d5231ae9] check-in: [c3b5f1d2f2] user: jan.nijtmans branch: trunk, size: 36348
2016-05-31
08:17
merge from trunk with a few tweaks for merge conflicts file: [731143e834] check-in: [598b58a5ee] user: sdr branch: winsymlink, size: 38540
2016-04-07
18:41
Make usage of 'Usage:' and 'or:' consistent in all help text. file: [8e85e61f94] check-in: [8bfd9951ca] user: rberteig branch: trunk, size: 36349
2016-04-01
20:21
Work in progress on spell-check and proof-reading sweep over the help text. file: [afe7321c77] check-in: [2a4e31bd8d] user: rberteig branch: ross-spellcheck, size: 36338
2016-03-24
18:23
Reviewed all Usage: messages for consistency and fixed a few where the fossil command was named in the call to usage(), causing the displayed usage to show the command name twice. Affected commands are bisect options, test-fileage, test-set-mtime, whatis, remote-url, and tag list. file: [2902ca147e] check-in: [57f1eaecb8] user: rberteig branch: trunk, size: 36341
2016-03-11
23:38
Fix compilation issues cause by the trunk merge. file: [b673d8357c] check-in: [12453740c7] user: mistachkin branch: mvHardDirFix, size: 36356
2016-03-06
06:26
Merge updates from trunk. file: [b53eb8976a] check-in: [abd131b83c] user: mistachkin branch: mvHardDirFix, size: 36302
2015-12-02
20:23
Experimental changes to deal with the reserved 12 characters (e.g. 'FILENAME.EXT') always needed for long directory names on Windows. file: [96e88d124e] check-in: [6ebef28f2b] user: mistachkin branch: pending-review, size: 35758
2015-09-03
23:15
Merged from trunk with a few tiny edits to make new functionality work on Windows file: [afc0dcc5d4] check-in: [8f33e49dd4] user: sdr branch: winsymlink, size: 38024
2015-07-29
18:44
Candidate fix for directory renaming issue with the --hard option as reported via the mailing list. file: [12ea8e64e6] check-in: [b86127e187] user: mistachkin branch: mvHardDirFix, size: 36370
2015-06-10
21:42
Enhance Tcl integration subsystem to check for the FOSSIL_TCL_PATH environment variable. It present, it will be used as a directory or file name where a Tcl 8.x library might be located. file: [e782c9f589] check-in: [b523bf0be0] user: mistachkin branch: trunk, size: 35826
2015-05-26
23:28
Enhance error handling when there is no open checkout and add comments. file: [22f24ea269] check-in: [d12fc4b148] user: mistachkin branch: mvRmHardFix, size: 35189
22:39
Fix typo in comment and add more tests of file name transformation methods. file: [505fdca567] check-in: [9b41960e82] user: mistachkin branch: mvRmHardFix, size: 34334
21:46
Enhance file_tree_name() to be capable of producing absolute paths within the local tree. Fix --hard option to mv/rm to enable it to work properly with relative paths. file: [51132974d9] check-in: [c2df31dae8] user: mistachkin branch: mvRmHardFix, size: 34333
2015-05-17
17:43
Create parents of empty-dirs if they don't already exist. file: [45b8b355bf] check-in: [1ab80be485] user: andygoth branch: andygoth-empty-dirs-parents, size: 33591
2015-03-18
16:31
Merged several months worth of trunk into the winsymlink branch. file: [166e7f3a43] check-in: [f4c1434493] user: sdr branch: winsymlink, size: 35553
2015-03-10
21:00
Fix file_is_absolute_path(), accounting for "C:" being an absolute path file: [884b233bc9] check-in: [573bbd3eb9] user: jan.nijtmans branch: trunk, size: 33355
2015-02-10
08:24
Speedup handling of checked-out files: When multiple information about a file is requested (size, mtime, permission flags) only call stat() once. file: [b679d16827] check-in: [dd94e596f4] user: jan.nijtmans branch: trunk, size: 33337
2015-02-08
10:20
Fix Fossil's handling of file permission bits on systems which have ACL's. In that case, group permissions can give unexpected values, which results in unnecessary slowdown repeatedly trying to unset the flags which doesn't work. More explanation: [https://cygwin.com/faq/faq.html#faq.using.ssh-pubkey-stops-working]. Noted on latest Cygwin (1.7.34) which added support for ACL handling. file: [aa4be8b36a] check-in: [3d0e8c01fe] user: jan.nijtmans branch: trunk, size: 33520
2015-02-06
19:56
Better comment why the group executable bit cannot be used on Cygwin, and possibly other IEEE 1003.1 ("POSIX.1") compliant systems, which support ACL's file: [79e1328f5c] check-in: [9c3b544ec2] user: jan.nijtmans branch: trunk, size: 33830
15:34
Workaround for recently introduced Cygwin bug: group permission is always set! This was the cause of the "execute permission" trouble in my recent commits. :-( file: [62c4de4490] check-in: [d9dfe11d0c] user: jan.nijtmans branch: trunk, size: 33736
2015-01-28
03:34
Fix for Cygwin ACL bug file: [09f42cf872] check-in: [4043d5ea0b] user: jan.nijtmans branch: sqlite3-compat, size: 33061
2015-01-20
17:48
Experimental changes to add 'setenv' support to CGI script files. file: [6c218bb038] check-in: [fe77afb158] user: mistachkin branch: cgiSetEnv, size: 33547
2014-09-26
09:23
Make everything compile on MinGW(-w64). WARNING: will not run on Windows XP, that still has to be fixed! Should work on Vista+. file: [e4c41b83bb] check-in: [631dff61e0] user: jan.nijtmans branch: winsymlink, size: 35198
2014-09-25
19:21
Summary: a number of changes to improve windows symlink handling. Detail: fixed file_contains_merge_marker failure on windows symlinks; fixed inadequate S_ISLNK macro for windows; backed out change made to revert query ("OR islink" removed); added special processing to vfile_check_signature for windows symlink type changes; fixed a few flaws in the windows specific posix-compatibility routines to improve symlink handling. file: [bcedd9c9e7] check-in: [9c5bbd6a01] user: sdr branch: winsymlink, size: 35144
2014-09-23
00:15
Cherrypicked a number of commits from a "bad branch" (I somehow fouled up a merge from trunk). file: [c2b87d0c6b] check-in: [2d75e87b76] user: sdr branch: winsymlink, size: 35031
2014-09-21
02:05
Cleaning up some source comments & such. Also modified a memory block to be on the heap instead of the stack. file: [b4b2cb749a] check-in: [30ff96e7a5] user: sdr branch: bad-winsymlink, size: 34996
2014-09-20
18:41
Changed name of checked_symlink_create to create_symlink_or_file as it is more accurate / descriptive. Also changed some parameter names, and fixed a couple spelling errors (accidentally typed blog instead of blob and never compiled; oops). file: [360fa10619] check-in: [31b0a9d737] user: sdr branch: bad-winsymlink, size: 34308
18:32
Refactored symlink_create repeated block of code into a checked_symlink_create function. file: [87a3c9b521] check-in: [2d3ff7bd23] user: sdr branch: bad-winsymlink, size: 34302
18:11
Modified revert to always process symbolic links. Also added link_delete to complement file_delete, as windows needs special delete handling for symbolic links as they might be directory symlinks. file: [6faa6e4cc2] check-in: [9e0ba1215d] user: sdr branch: bad-winsymlink, size: 34022
16:50
Fixed a problem with the high level symlink creation code to accommodate windows drive letters. Also modified windows symlink creation logic to better handle dir/file symlinks. file: [3aefdf3f92] check-in: [1f1f75066a] user: sdr branch: bad-winsymlink, size: 33690
15:28
Merged updates from trunk. file: [3f982e866f] check-in: [e2c5960617] user: sdr branch: bad-winsymlink, size: 33331
2014-09-15
02:36
Consolidate all use of the capture_case_sensitive_option() function. file: [a653b0a67d] check-in: [96dc84077f] user: mistachkin branch: captureCaseSensitiveOption, size: 33088
01:49
Work in progress for windows symlink support. file: [a4be4f45df] check-in: [de8035cca6] user: sdr branch: winsymlink, size: 33366
2014-04-29
10:19
Fix some compiler warnings 'may be uninitialized in this function'. Move path conversions out of win32_chdir/win32_access/win32_stat, as its caller already can do that. This eliminates some code duplication. file: [8263f108df] check-in: [503482a2c6] user: jan.nijtmans branch: trunk, size: 33123
09:26
Fix some compiler warnings 'may be uninitialized in this function'. Move path conversions out of win32_chdir/win32_access/win32_stat, as its caller already can do that. This eliminates some code duplication. file: [b918787eb5] check-in: [cdfde813f9] user: jan.nijtmans branch: mistake, size: 33127
2014-04-09
21:55
Cherry-pick [c5b86115de]: Update version of OpenSSL that is referred to in the makefiles. Cherry-pick [565ba734d2]: Fix "fossil extras" when a "extra" entry matches partly with current directory name (reported by j. van den hoff). file: [70ed1e6279] check-in: [c779b68904] user: jan.nijtmans branch: branch-1.28, size: 31345
20:35
Fix "fossil extras" when a "extra" entry matches partly with current directory name (reported by j. van den hoff) file: [1b9b85a464] check-in: [565ba734d2] user: jan.nijtmans branch: trunk, size: 33126
2014-04-01
18:43
Get the "fossil cat" command working outside of a check-out using the -R option. This is an alternative implementation to the fix-cat-dash-R branch that avoids adding a new global variable. file: [3759ba0aca] check-in: [ebe97b79f2] user: drh branch: trunk, size: 33042
2014-02-28
13:46
Handle win32 extended path prefix everywhere: Just strip it in the function file_simplify_name(), and only add it back when needed (just before feeding it to a win32 function when >260 chars). Includes additional test-cases. file: [0c3c2d086a] check-in: [95f004b1c5] user: jan.nijtmans branch: trunk, size: 32953
2014-02-27
23:27
Add the "test-file-copy" command for testing the file_copy() procedure. file: [2497b2e413] check-in: [190353e90d] user: drh branch: trunk, size: 32682
23:20
Fix the file_copy() procedure so that it automatically creates directories leading up to the destination file. file: [ebd70f300f] check-in: [f991688730] user: drh branch: trunk, size: 32247
2014-02-26
10:42
Add support for extended UNC paths as well, and add Windows/Cygwin-specific test-cases for it. file: [51af7e7fb1] check-in: [ebb42b530e] user: jan.nijtmans branch: extended-path-prefix, size: 31531
2014-02-25
13:31
Follow-up to [8ab08d32c7]: Fossil still doesn't handle the extended path prefix on win32 ('\\?\') right, mainly in checking paths. e.g.: "fossil add //\?/C:/Localdata/workspace/fossil/foo.c". Fossil cannot know that this path is correct. Solution: Strip the extended path prefix in file_simplify_name(), and only add it back when needed. Latest "winhttp.c" changes could be reverted with this change when compiling with MSVC or MinGW-w64 (as the repository path after simplicifation doesn't contain '?' any more), but when using MinGW the command-line handling cannot be thrusted. file: [1fa6e1633a] check-in: [ce4afc891c] user: jan.nijtmans branch: extended-path-prefix, size: 31381
2014-01-28
08:20
More removals of unnecessary end-of-line spaces. No change in code. file: [00ddefb917] check-in: [45f35169f2] user: jan.nijtmans branch: trunk, size: 31260
2014-01-09
11:57
Change C++ comments to C commenting style file: [0303e9ba6f] check-in: [25950f8b67] user: jan.nijtmans branch: trunk, size: 31261
11:24
Merge again checkout_on_root_fix. Fix more cases when working from '/', should not affect when working normally. file: [10ef2566f5] check-in: [af194dbb16] user: mgagnon branch: trunk, size: 31252
2014-01-08
17:40
<strong>Fix some remaining corner cases when having a checkout on '/'..</strong> Update command: * Was asserting when localroot is '/' file_cannonical_name(): * Return '/' instead of '.' when refering to '/'. * Avoid the double '/' on beginning. * Refactoring to avoid some duplicated code. file_relative_name(): * Handle properly relative path when working on '/'. file: [1f61bb729a] check-in: [89ad123f5c] user: mgagnon branch: checkout_on_root_fix, size: 31250
2013-12-14
00:16
Fix the build for unix. file: [3274447113] check-in: [4f0c38d81d] user: drh branch: win32File, size: 30977
00:03
Work in progress on refactoring the complex Win32-specific file routines into their own subsystem. file: [80daf9b2ab] check-in: [4f0413381d] user: mistachkin branch: win32File, size: 30907
2013-12-13
13:48
Better use GetCurrentDirectoryW in stead of _wgetcwd. file: [97412e4c9d] check-in: [4e463bf7ba] user: jan.nijtmans branch: trunk, size: 37271
13:05
Better implementation of file_access() for win32: The function _waccess cannot handle long paths, and lies too much (e.g. when handling specific smb drives). Implementation borrowed from Tcl 8.6: [http://core.tcl.tk/tcl/artifact/c6b5d4f8d7?ln=1510-1756] file: [22adb08333] check-in: [0b0eb52c07] user: jan.nijtmans branch: trunk, size: 37278
09:40
Use SetCurrentDirectoryW/GetFileAttributesExW in stead of _wchdir/_wstati64 (which cannot handle long pathnames) file: [d6f6d0515d] check-in: [3714782631] user: jan.nijtmans branch: trunk, size: 32179
00:11
Fix a C99-style variable declaration. file: [95bfb8f5d8] check-in: [a3641b5441] user: drh branch: makefile-error, size: 31622
2013-12-12
14:27
Implement file_access() function such that it accepts paths>MAX_PATH. Implementation copied (with some simplifications) from Tcl 8.6 file: [8cbc00d73a] check-in: [ba4b3ac1d2] user: jan.nijtmans branch: win32-longpath, size: 37379
13:54
Fix fossil_stat() and fossil_chdir() such that they accept paths>MAX_PATH. For file_access(), implement a workaround that the '\\?\' prefix can be handled. file: [8eb4d2bffe] check-in: [29f023fe53] user: jan.nijtmans branch: win32-longpath, size: 32460
2013-12-11
13:00
As it turns out that _wstati64() cannot handled the special "\\?\" prefix, work around that. Otherwise the win32-longpath VFS is quite useless for fossil. Maybe a better solution should be worked out, not using _wstati64() at all. file: [651a6c3a49] check-in: [bb440899d3] user: jan.nijtmans branch: trunk, size: 31891
2013-09-30
11:45
Add --emptydirs option to the 'clean' command to remove empty directories. Corrections to style and comments. Remove superfluous local variable zDir in vfile_scan. file: [c0add7cfd3] check-in: [8f1e1ee8fb] user: mistachkin branch: cleanEmptyDirs, size: 31613
2013-09-19
11:48
Fix MSVC build error and warnings: c:\localdata\workspace\fossil\src\util.c(249) : warning C4715: 'fossil_timer_fetch' : not all control paths return a value c:\localdata\workspace\fossil\src\util.c(270) : warning C4715: 'fossil_timer_reset' : not all control paths return a value file: [222d00f8fc] check-in: [6e1e4bb83d] user: jan.nijtmans branch: trunk, size: 30966
11:18
Bug-fix in file_relative_name(): If filename is a super-directory of the current directory then the final slash is missing. Test-case: "fossil test-relative-name /home/ --slash". Result "../../.." should be "../../../". This bugfix is needed for my next commit. file: [811424cd7f] check-in: [add7524533] user: jan.nijtmans branch: trunk, size: 30966
08:30
Add --slash option to test-canonical-name and test-relative-name file: [05730924bb] check-in: [e6ced76797] user: jan.nijtmans branch: trunk, size: 30840
2013-05-29
14:01
Fix two cases where a string value might be used after being freed. file: [252d00117d] check-in: [04ab1af3e0] user: drh branch: trunk, size: 30730
2013-05-14
14:15
Function file_tree_name() should respect case-sensitive setting. Add --case-sensitive option to test-tree-name. file: [c4cac59128] check-in: [0df0ce8025] user: jan.nijtmans branch: trunk, size: 30731
2013-05-02
19:44
Fix --chdir on Windows/Cygwin when using non-ascii characters or characters invalid for win32 filenames. On Cygwin, allow enter_chroot_jail() using win32 paths as well. file: [1adbc7131c] check-in: [12bc63aae5] user: jan.nijtmans branch: trunk, size: 30385
2013-03-04
14:25
merge trunk file: [3aafb63491] check-in: [aa6038265a] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29787
2013-03-01
13:19
Teach fossil_utf8_to_filename() how to handle win32 paths on Cygwin. Use this function where-ever possible. file: [c6ad62e5a9] check-in: [caf2eb25fa] user: jan.nijtmans branch: trunk, size: 29913
2013-02-27
13:51
plug minor memory leak file: [816c6158a1] check-in: [52fb2a71ad] user: jan.nijtmans branch: trunk, size: 29558
09:54
merge trunk file: [2b7375cff4] check-in: [efe9993f2b] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29622
2013-02-26
20:50
Fix preprocessor check for Win32/Cygwin in file_simplify_name(). file: [2eb6a92484] check-in: [9e602271f4] user: mistachkin branch: trunk, size: 29471
09:27
Cygwin has same filesystem as Windows, so should be case-insensitive and do '/' <-> '\' conversion the same as win32. fossil_utf8_to_filename should do '/' -> '\' conversion on win32, as not all win32 API functions handle '/' correctly. file: [316882816d] check-in: [d4b3e1d86d] user: jan.nijtmans branch: trunk, size: 29471
2013-02-25
01:02
Added fix for issue seen with merge; would fail due to file_copy() issue where files of renamed directories would not have the new directory created beforehand. Also added fix for issue seen after large merge; 'changes' command would fail due to WriteConsoleW() returning with error ERROR_NOT_ENOUGH_MEMORY; fix seems hacky but works. file: [2199964263] check-in: [3f31dc6597] user: jeffrimko branch: jeffrimko-fix-merge-changes, size: 29880
2013-02-21
11:29
Rename fossil_utf8_to_unicode to fossil_utf8_to_filename on UNIX, everywhere where filenames are involved. This enables fossil_utf8_to_unicode/fossil_unicode_to_utf8 to be re-implemented on UNIX to do what the name suggests. file: [3708769da6] check-in: [7eb5e2319f] user: jan.nijtmans branch: trunk, size: 29408
2013-02-18
10:03
New function fossil_utf8_to_filename, such that fossil_unicode_to_utf8/fossil_utf8_to_unicode/fossil_unicode_free are not used on UNIX/MAC any more: On UNIX those 3 functions were only no-ops, but this allows to re-implement then for real unicode <-> utf-8 conversions. There is an "#ifdef _WIN32" around those 3 functions and 2 more (fossil_mbcs_to_utf8/fossil_mbcs_free) in order to prove that they are not used any more on UNIX/MAC. file: [eaad71e0f9] check-in: [cc3976fd30] user: jan.nijtmans branch: fossil_utf8_to_filename, size: 29410
2013-01-28
13:09
win32: files with invalid chars were not deleted sometimes with "fossil update" file: [43b624e742] check-in: [d9aa512e20] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29589
2013-01-27
21:56
Fix file_simplify_name and file_is_absolute_path for cygwin file: [896d002ca8] check-in: [b293b744db] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29371
21:31
merge trunk file: [04e02d756d] check-in: [8df9d37834] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29280
2013-01-26
16:27
merge trunk file: [6fc0771be1] check-in: [013854ae76] user: jan.nijtmans branch: allow-backslash-in-card-filename, size: 29396
2013-01-24
12:00
Handle translation between '/' and '\\' on Windows and Cygwin file: [22be57b1eb] check-in: [ba87fb1fec] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29418
10:53
merge trunk file: [368fb9e30f] check-in: [ba3e82f189] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 29389
10:18
Further simplification of continuation byte checkin in filenames file: [6ffde44eeb] check-in: [a5cd2dd64e] user: jan.nijtmans branch: trunk, size: 29379
2013-01-23
13:15
Further fine-tuning of the check for valid UTF8 characters in filenames. file: [0c7efce900] check-in: [4d456c9fd1] user: drh branch: trunk, size: 29491
2013-01-21
13:12
Oops, make it work correct now. file: [a649d30b54] check-in: [7dabede3b3] user: jan.nijtmans branch: disallow-invalid-utf8-in-filenames, size: 29364
09:39
From the changes.wiki for Fossil 1.25: "Disallow invalid UTF8 characters (such as characters in the surrogate pair range) in filenames." This completes the set of UTF8 characters which are generally considered invalid, so they should be disallowed in filenames: the "overlong form", invalid continuation bytes, and -finally- noncharacters. file: [5910628ea4] check-in: [011d5f692d] user: jan.nijtmans branch: disallow-invalid-utf8-in-filenames, size: 29352
2013-01-15
10:25
formatting file: [38d429e1f9] check-in: [9d657c3be5] user: jan.nijtmans branch: allow-backslash-in-card-filename, size: 28558
10:21
one more: if we already know the character is in the range U+E000 - U+FFFF, it cannot be a surrogate any more. file: [085a62172a] check-in: [4f510b66cb] user: jan.nijtmans branch: trunk, size: 28587
10:15
Eliminate "continue" statement, makes control flow easier to understand. If we already know a character is non-ASCII, don't need to check for '\\' any more. file: [21fbe7b9c7] check-in: [886e1bb2a8] user: jan.nijtmans branch: trunk, size: 28591
2012-12-20
22:59
Allow backslash in filenames on UNIX (experiment) file: [dcd451d839] check-in: [c3d74f4f63] user: jan.nijtmans branch: allow-backslash-on-unix, size: 28554
2012-12-19
08:24
Allow backslash in card filenames without causing a SYNTAX error in card parsing. file: [26f6e4e3bc] check-in: [0a24257420] user: jan.nijtmans branch: allow-backslash-in-card-filename, size: 28559
2012-12-12
22:52
Do not enforce the requirement that filenames in manifests be strict UTF8 because some bug or another in a legacy version of Fossil allowed in some Latin-1 Suppliment characters encoded as a single byte (ex: 0xf3) instead of the correct two-byte encoding (ex: 0xc3 0xb3) and so if we start enforcing strict UTF8, some check-ins from those legacy versions of Fossil will be inaccessible. file: [bce0996d79] check-in: [d48399bd39] user: drh branch: trunk, size: 28733
2012-12-07
12:57
Include "sys/times.h" in file.c if not compiling on windows. This quiets a compiler warning. file: [f7b0bfc657] check-in: [bf160cf014] user: drh branch: trunk, size: 28426
2012-12-01
09:53
update wrong comment file: [619a5193ae] check-in: [39807cdf0c] user: jan.nijtmans branch: trunk, size: 28445
2012-11-30
15:52
Allow characters *[]? to appear in filenames. Tickets [46bf4baedce] and [d17d6e5b174bd6] and [10aee063c413c107] file: [6c6c876687] check-in: [647bb7b79f] user: drh branch: trunk, size: 28449
12:36
merge trunk. appears to work well again. file: [3889ef1e34] check-in: [0c65916136] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 28459
2012-11-29
15:13
merge trunk. Broken on win32! file: [353c758e48] check-in: [258cedd625] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 28499
09:59
One more thing I spotted (but cannot test!): UTF8-mac encoded values could enter fossil through environment variables as well... file: [f2ab8b982c] check-in: [42951c59ae] user: jan.nijtmans branch: ticket-e399bc, size: 28489
09:53
Tested now on win32 and cygwin (with some fixes, please evaluate!). I cannot test it on OSX, but I think this should function as intended. file: [91b76476f2] check-in: [a0148eac53] user: jan.nijtmans branch: ticket-e399bc, size: 28489
03:14
Untested changes designed to fix broken filename encodings on MacOS. Move all character-set converting routines into a new file called utf8.c. Add the fossil_filename_to_utf8() routine, which converts Unicode to utf8 on windows and decomposed utf8 into precomposed utf8 on Mac. Ticket [e399bc1edfe45b] file: [0609b8972a] check-in: [c24e568fb0] user: drh branch: ticket-e399bc, size: 28484
2012-11-28
11:13
Add a conditional #include in an attempt to get the build working on Cygwin. file: [826843ae83] check-in: [b963446708] user: drh branch: trunk, size: 31887
2012-11-25
20:44
merge trunk file: [a149ea3f35] check-in: [22a543bcf5] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 34337
2012-11-23
11:29
merge trunk "filename contains illegal characters" is now a warning file: [559f371aed] check-in: [d3bee356ba] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 33395
10:35
Disallow invalid unicode characters file: [85dbb08d93] check-in: [9242c09ff9] user: jan.nijtmans branch: invalid-unicode, size: 31839
2012-11-22
12:58
Minor fix in checking for drive-prefix (!= absolute filename) file: [9832554bd5] check-in: [6119cb310d] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 33392
10:16
Modify db_open_config() and associated routines to make their internal state more consistent and discoverable. file: [65e5ec5a68] check-in: [52a6868700] user: mistachkin branch: dbOpenConfig, size: 30897
2012-11-21
09:20
Somehow, part of previous change got lost file: [8ffecbc457] check-in: [9272573511] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 33332
09:12
Split off in separate functions <p>Still experimental, but starts looking better file: [69361fbe16] check-in: [b59dc07818] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 33376
2012-11-20
13:46
Experimental fix for issue [d17d6e5b17]. <p>Should have a LOT more testing before merging it to trunk, because it is dangerous! <p>The method used is as described at: <br> [http://cygwin.com/cygwin-ug-net/using-specialnames.html] The only problematic characters left are ':' and '\', all other problematic characters are handled by translating them to characters in the range U+F000 to U+F0FF <p>Feedback welcome. file: [69d8909e1b] check-in: [82ce90f91c] user: jan.nijtmans branch: ticket-d17d6e5b17, size: 32259
2012-10-15
15:01
Fix the windows build for the 1.19 branch. file: [d64d55f494] check-in: [d3e7557a54] user: drh branch: branch-1.19, size: 22490
05:28
unused variable includeDotFiles <p>struct utimbuf -> struct _utimbuf (compiler warning with mingw-w64) <p>a few "const" additions file: [91e4570f94] check-in: [d2e1469d12] user: jan.nijtmans branch: use-utf8-in-win-external-editor, size: 30894
2012-10-11
19:45
Cherrypick changes [0c37874941c8972], [9ba8a393fcc569b], and [ae092ec605eed11] in order to backport the --setmtime option of "fossil update" and the --age and -t options of "fossil ls" to version 1.19. file: [9a93649b9e] check-in: [773c6c5f2c] user: drh branch: branch-1.19, size: 22497
2012-10-10
16:06
The "fossil undo" and "fossil redo" commands remember file mtimes and restore them appropriately. When upgrading through this version, you may need to run "fossil undo --reset" to clear your old undo stack. file: [adc8ffdec0] check-in: [0c37874941] user: drh branch: trunk, size: 30893
2012-09-24
07:00
previous commit fixed the MSVC build, but broke the mingw build. Now fix both of them. file: [e02733ba8a] check-in: [1ef58e5246] user: jan.nijtmans branch: trunk, size: 29791
2012-09-23
23:52
Always use wide-character Win32 APIs for dirent.h. file: [51f6c61f87] check-in: [ea621d75ef] user: mistachkin branch: trunk, size: 29771
2012-09-20
20:33
eliminate all #ifdef UNICODE, assuming everthing is compiled with -DUNICODE -D_UNICODE file: [249fe63bcd] check-in: [ad91647ea7] user: jan.nijtmans branch: trunk, size: 29992
2012-09-17
07:34
fix [ce73fc2173] <p>Restore Win9x, using unicows eliminate all #ifdef UNICODE file: [779dc56b5b] check-in: [9cf5056af9] user: jan.nijtmans branch: win95-unicows, size: 29993
2012-09-12
22:01
simplify switching between widechar and unicode variant of dirent file: [6b08bdbacd] check-in: [a8f7a8ac24] user: jan.nijtmans branch: restore-win95, size: 30285
08:10
Restore fossil to be compilable for Win95 <p>Replace "-DUNICODE -D_UNICODE" with "-DSQLITE_OS_WINNT=0" in win/Makefile.mingw if you want this. file: [364bc37eff] check-in: [b402bec882] user: jan.nijtmans branch: restore-win95, size: 30487
2012-09-07
07:53
Enable unicode commandline and unicode console output for msvc builds. file: [2f7c8ff469] check-in: [286950208c] user: jan.nijtmans branch: unicode-cmdline, size: 30669
2012-09-06
09:10
merge trunk <p>enable UNICODE mode (experimental) file: [4ff58aa938] check-in: [2017d2f832] user: jan.nijtmans branch: eclipse-project, size: 30695
2012-09-05
09:26
be smarter about istty static initialization file: [1b7828bf8b] check-in: [5d9f57a721] user: jan.nijtmans branch: eclipse-project, size: 30019
09:05
superflueous semicolon. file: [5af50ea059] check-in: [6f3b0f3445] user: jan.nijtmans branch: eclipse-project, size: 30056
09:00
fix writing to stderr console, last commit broke that. file: [67a40b8724] check-in: [b4bab791fc] user: jan.nijtmans branch: eclipse-project, size: 30060
08:15
write unicode to console, when possible. file: [01cf823920] check-in: [7fd74e72f8] user: jan.nijtmans branch: eclipse-project, size: 30060
07:31
make output to the Windows console binary-safe file: [3b0f6b8380] check-in: [a830168d3f] user: jan.nijtmans branch: eclipse-project, size: 30552
2012-09-01
04:45
Remove leftover instances of non-ASCII characters from several files. file: [84de81811c] check-in: [f15ce59b00] user: mistachkin branch: trunk, size: 30127
2012-08-30
19:29
upgrade dirent.h to latest available version (1.11) file: [b6832b2cc9] check-in: [fb07d8693e] user: jan.nijtmans branch: trunk, size: 30126
2012-08-29
22:37
found the cause of the crash!!!! file: [30600e215f] check-in: [27905725de] user: jan.nijtmans branch: msvc-broken, size: 30150
22:34
working part of [01a2f3a346] file: [2ab22efcaf] check-in: [14733d1519] user: jan.nijtmans branch: trunk, size: 29665
20:48
working part of [ticket-01a2f3a346] (still don't understand, but somehow it doesn't work with msvc) file: [66e0d07249] check-in: [517309406a] user: jan.nijtmans branch: broken-msvc-2, size: 29649
20:27
make it link on msvc. Doesn't run yet. file: [501aa73991] check-in: [bd43f1c249] user: jan.nijtmans branch: msvc-broken, size: 30134
16:51
An attempt to factor out the opendir() family of routines and provide portable alternatives, fossil_opendir(). This simplistic first attempt works on non-windows platforms, but the build fails on windows. file: [e077298aff] check-in: [8d8e529aa9] user: drh branch: msvc-broken, size: 30130
14:12
merge trunk file: [a7c3032856] check-in: [c037808477] user: jan.nijtmans branch: eclipse-project, size: 29680
11:27
fix for [01a2f3a346] file: [c1d1796153] check-in: [0357ed556e] user: jan.nijtmans branch: msvc-broken, size: 29650
2012-08-24
14:50
merge unicode branch file: [c96c0f1a36] check-in: [b4ea94b488] user: jan.nijtmans branch: eclipse-project, size: 29708
13:42
add mkdir to the unicode-supported functions add chinese-named file and directory in test directory, demonstrating the fix [01a2f3a346] file: [8eb40fea3e] check-in: [c780793749] user: jan.nijtmans branch: ticket-01a2f3a346, size: 29678
2012-08-23
08:53
unicode support for file_getcwd, file_access and fossil_stat as well file: [05c11eb2b5] check-in: [d95039cc5a] user: jan.nijtmans branch: eclipse-project, size: 29670
2012-08-22
13:47
new functions fossil_unicode_to_utf8 and fossil_utf8_to_unicode. Modify file_delete, file_tempname, fossil_getenv and fossil_fopen to use it, so now they can handle all unicode characters not only the ones from the mbcs This should allow all filenames and environment variables to contain unicode characters, without problems on WIN32. If main.c is compiled with -DUNICODE -D_UNICODE, then command line arguments allow unicode characters on win32 as well. Build system not adapted for that yet. file: [836eeba3d2] check-in: [65c8ca0571] user: jan.nijtmans branch: eclipse-project, size: 29528
2012-08-21
11:18
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:11:0, from src/cgi.c:29: /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h src/file.c:47:0: warning: "stat" redefined /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/stat.h:258:0: note: this is the location of the previous definition In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:11:0, from src/http_socket.c:35: /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h src/shell.c:67:0: warning: "popen" redefined /usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:503:0: note: this is the location of the previous definition src/shell.c:68:0: warning: "pclose" redefined /usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:504:0: note: this is the location of the previous definition file: [332957705d] check-in: [b5d69afed7] user: jan.nijtmans branch: jn-mingw-w64-compiler-warnings, size: 28082
2012-06-29
15:59
Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". file: [5ac43b076d] check-in: [0328d68181] user: drh branch: sqlite4, size: 28076
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. file: [e79fccbe92] check-in: [6823912746] user: drh branch: sqlite4, size: 28075
2012-03-29
14:54
Add vim modline everywhere file: [38702516ff] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 28111
2012-03-19
05:24
Modify file_simplify_name to accept a parameter used to determine if the trailing slash, if any, should be retained. Make use of this when converting the local root to its canonical form. file: [a249612d41] check-in: [e94c7cc4de] user: mistachkin branch: winFiles, size: 28069
04:48
In file_tree_name, since the file name argument is converted to its canonical form prior to the memcmp, the local root must be as well. On Windows, normalize drive letters to uppercase when converting a file name to its canonical form and fix construction of temporary file names used with the gdiff command when the --from and --to options are present. file: [319b298f34] check-in: [6be0898b2c] user: mistachkin branch: winFiles, size: 27811
2012-02-16
03:15
Fix typo in the new fossil_getenv() function for windows. file: [3e15b2476f] check-in: [6c835ea8c7] user: drh branch: trunk, size: 26344
01:03
Always convert the result of getenv() into UTF8. file: [a4af7b79cd] check-in: [57152086b8] user: drh branch: trunk, size: 26344
2012-01-28
21:51
Store the repository filename in the _FOSSIL_ database exactly as it is typed on the "open" command-line. That means that the repository filename will be stored relative to the root of the check-out if a relative pathname is given on open. file: [0b766e8fbf] check-in: [a7248d8fb9] user: drh branch: trunk, size: 26116
2012-01-03
06:40
The return value from sqlite3_win32_mbcs_to_utf8 and sqlite3_win32_utf8_to_mbcs must now be freed via sqlite3_free. file: [416098d705] check-in: [058e287edb] user: mistachkin branch: trunk, size: 25918
2011-10-14
16:11
Merging the annotate_noleak changes, about removing an important memory leak in the annotate operation. It also fixes some blob behaviour in blob.c and content.c. <b>Update:</b> Removed from trunk. Replaced by the must simpler fix at [9929bab702f99839ee] file: [64460aeaaa] check-in: [409f370a6d] user: viriketo branch: declined, size: 25888
2011-10-05
02:03
Change a #ifdef so that builds on MSVC will work on repos larger than 2GB. file: [79bed8df57] check-in: [6092935ff2] user: drh branch: trunk, size: 25875
2011-09-29
11:45
Change file_size() to file_wd_size() in file_is_the_same(). file: [5c47646bb2] check-in: [13a771ce18] user: dmitry branch: trunk, size: 25852
2011-09-27
19:28
Call file_wd_isdir() in file_mkdir(). file: [073bb82953] check-in: [13120e9620] user: dmitry branch: trunk, size: 25849
2011-09-08
14:30
Add comment describing file_wd_isfile() function. file: [d29ba5922c] check-in: [f23334cbda] user: dmitry branch: trunk, size: 25846
12:59
Fix Windows build. file: [2bc870a9f5] check-in: [4e586a2d8e] user: dmitry branch: symlinks, size: 25781
11:59
Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support. Fix renaming of symlinks when merging (via new function symlink_copy()). Rename create_symlink() to symlink_create(). file: [2c3945270b] check-in: [8a0c546990] user: dmitry branch: symlinks, size: 25768
2011-09-04
20:43
Updating from trunk to get the latest code. file: [c44433a1bb] check-in: [73b6ff4966] user: viriketo branch: annotate_noleak, size: 24406
20:41
What I did to get the 'annotate' command not leak. Notice that I disabled again the check for blob_is_reset, as in trunk. file: [df52ea2abe] check-in: [7ad4dfbe8b] user: viriketo branch: annotate_noleak, size: 24335
2011-09-01
22:56
Refactor file_perm(), file_islink(), and file_isexe(). Now file_perm() calls stat only once. file: [a3f3d80ed1] check-in: [eac23495a9] user: dmitry branch: symlinks, size: 24393
2011-08-27
18:25
Changes to fossil_stat() so that the build works for mingw. file: [36455e07c6] check-in: [a7e747e58f] user: drh branch: symlinks, size: 24322
2011-08-25
11:42
Introduce constants for internal permissions (executable/symlink). file: [136d10a7b1] check-in: [f6daee3e7b] user: dmitry branch: symlinks, size: 24358
2011-08-23
17:44
Fill islink field in vfile table when adding files. Support symlinks in export. Make manifest_file_perm() return 2 for symlinks. Add file_perm() function, and use it instead of file_isexe() when we need both isexe and islink properties. file: [cf0cd7a9c9] check-in: [4619361d58] user: dmitry branch: symlinks, size: 24340
13:54
Fix comments. file: [b43e89c4bf] check-in: [4a32e8ade7] user: dmitry branch: symlinks, size: 24075
2011-08-22
22:20
Merge trunk. file: [ead3a71e3f] check-in: [c57830bec2] user: dmitry branch: symlinks, size: 24042
2011-08-14
23:12
Fix the file_relative_name() function so that it works on windows. file: [6e89d00e36] check-in: [47b5bf7d16] user: drh branch: ben-testing, size: 21347
2011-06-18
15:51
Improved error messages when getcwd() fails. Ticket [f628d183c958c5b12]. file: [c342ae626d] check-in: [89e6eb9674] user: drh branch: trunk, size: 20866
2011-06-17
13:37
Fix the temporary filename generator so that it does not get stuck in a loop. Ticket [006e1df642d6246a03]. file: [92fb355ec6] check-in: [d3a1663a09] user: drh branch: trunk, size: 20682
2011-06-06
17:17
When setting execute permission only set it for those users that also have read permission. file: [5735e95799] check-in: [fd6f1c5e61] user: drh branch: trunk, size: 20593
2011-05-20
15:31
Abstract the getcwd() system library routine into file_getcwd() with appropriate translations on windows. file: [05fff3af4a] check-in: [4b3425401f] user: drh branch: trunk, size: 20535
14:17
Convert the return value of getcwd() from MBCS into UTF8 before using it. file: [f21fe601bb] check-in: [ef04076777] user: drh branch: trunk, size: 19976
2011-05-13
15:46
When translating UTF8 text for display on the console, use the codepage obtained from GetConsoleCP(), not the CP_ACP code page that is used for system calls. file: [8b337895c2] check-in: [55b32701a5] user: drh branch: windows-i18n, size: 19878
2011-05-04
11:13
Add a wrapper around all calls to access() that translates UTF8 to MBCS. file: [b1fe4ab376] check-in: [850d3df44e] user: drh branch: windows-i18n, size: 18610
2011-05-03
18:32
Convert filenames from UTF8 to MBCS on windows when checking if a file exists or checking its size, etc. Ticket [336924579dd95e7cceaeeae5]. file: [14fe5b6b14] check-in: [48f5dadafd] user: drh branch: windows-i18n, size: 18385
2011-05-02
13:31
Change calls to unlink() into file_delete(). The file_delete() routine converts filenames to MBCS from UTF if necessary. file: [3ea90329f3] check-in: [eea6449098] user: drh branch: windows-i18n, size: 18200
2011-04-28
13:53
Make sure the argument to fopen() is MBCS instead of UTF8. file: [dd88e49ba8] check-in: [a3c252f237] user: drh branch: windows-i18n, size: 18047
2011-04-27
18:21
Attempt to get Fossil working on windows systems that do not use UTF8 in the shell. file: [1306b0d6c4] check-in: [e805fa8db9] user: drh branch: windows-i18n, size: 16681
2011-03-18
02:13
Allow up to two // characters at the beginning of a pathname since this is important on windows. file: [4ad3d43232] check-in: [f1173da7d5] user: drh branch: trunk, size: 16671
2011-02-27
22:22
Untested changes trying to get execute permission to be set correctly following "update", "merge", "stash", etc. Ticket [baf9b6b11e08c1d]. This is a big mess and is going to take some time to get right. file: [0fde121b42] check-in: [081aefde56] user: drh branch: exe-permission-fix, size: 16571
2011-02-21
16:33
Add the ability to use a graphical merging tool to resolve merge conflicts. Even without a configured graphical tool, leave files behind (VCS droppings) that contain the baseline, original, and merged files. file: [e44e503713] check-in: [9b7a6f80b2] user: drh branch: trunk, size: 16440
2011-02-12
13:38
This branch contains experimental changes attempting to address complaints that Fossil sometimes overwrites unmanaged files. In this checkin: Use file_delete() instead of unlink() everywhere. Add interfaces file_move() and file_dont_overwrite() but do not use those interfaces yet. file: [cff501da14] check-in: [a1814d5015] user: drh branch: file-safety, size: 16777
2011-01-28
19:04
Add symlink support for Unix. New settings flag "allow-symlinks" controls this (off by default). file: [b78180c1e7] check-in: [ed2ef7e9a3] user: dmitry branch: symlinks, size: 18506
2011-01-12
16:04
Fix the file_simplify_name() utility function so that it works with relative pathnames. Ticket [99caf06e17bed849146] file: [ea4b6e8458] check-in: [c637a8ac2d] user: drh branch: trunk, size: 15823
2010-12-22
22:33
Do not overwrite files on disk, and especially do not prompt the user for permission to overwrite, if there would ultimately be no change in the file content. file: [f1c58ca33f] check-in: [aa9ea7961a] user: drh branch: trunk, size: 14395
2010-11-08
19:31
Fix an inintiialized variable in the previous check-in. file: [aaf85336aa] check-in: [d8935a89b5] user: drh branch: trunk, size: 13887
19:23
Fix a corner-case in file_tree_name() - specifically when the input is the name of the root of the local tree, return ".". file: [a8eeaf623d] check-in: [f98114c9e4] user: drh branch: trunk, size: 13887
05:23
Allow fossil update -n -v current to be used on the root directory (aborted with "outside of checkout tree" error before). file: [c35180b251] check-in: [b6bb1ee725] user: venkat branch: venks-emacs, size: 13715
2010-11-07
23:51
Avoid the use of %lld to work around limitations of some windows compilers. Ticket [9d186979fc4fe8d9c] file: [a1d06f1946] check-in: [c76bb6d270] user: drh branch: trunk, size: 13624
21:11
Patches to file.c (for mingw is_dir), finfo.c (various utilities), and update.c (for verbose/nochange), to allow integration into Emacs and IDEs. file: [635cac310a] check-in: [2a86bb65aa] user: venkat branch: venks-emacs, size: 13543
2010-09-18
21:48
Use _stati64() rather than stat() on windows, in order to support repositories larger than 2GB. file: [4b422c8f1d] check-in: [293238031f] user: drh branch: trunk, size: 13496
20:08
Enhance the test-canonical-name command to provide additional file measurement diagnostics. file: [474813f78c] check-in: [7fbaee790a] user: drh branch: trunk, size: 13287
2010-08-28
09:20
Added the msvc sdk compiler file: [a746fd6105] check-in: [c00f79d054] user: renez branch: windowscompilers, size: 12864
06:59
This is the first check-in on the windowscompilers branch and it adds the <a href="http://www.digitalmars.com/">Digital Mars C compiler</a> The user should have dmc installed in c:\DM with zlib in c:\DM\extra\lib and c:\DM\extra\include. typing c:\DM\bin\make -f win\Makefile.dmc builds fossil.exe in dmcobj The following files were edited or added: <p>Checks if one of the windows compilers is used. If so we define _WIN32. Defining _WIN32 is normally done by<br>#include &lt;windows.h&gt;<br> However most of the time we don't use windows.h. </p> <p>Adding an other windows compiler is done by adding<br> "|| defined(__COMPILER_IDENTIFIER__)"<br> and maybe some special things in the files below. Like <pre> </pre> </p> <p>These have all __MINGW32__ replaced by _WIN32. And in some places special processing for either MINGW32 or DMC <p>In popen2 the _open_osfHandle call first parameter is cast to a long. DMC refused to compile without the cast.</p> <p>DMC complained that it didn't knew of time_t in rss.h. time.h came after rss.h. Switching the two solved it! </p> <p>added tcl code to generate Makefile.dmc. tclsh src/makemake.tcl dmc prints to stdout the makefile. As a convienience to the end-user I added the win/Makefile.dmc to the repository. There are few changeable variables in there for adjusting path, CFLAGS LIBS etc. </p> <p>These are needed because DMC and MSVC doesn't provided them. dirent.h is copied verbatim from the net. unistd.h I found on the net too, but added some defines. <p>The problem with windows it doesn't have AWK standard installed. version.c creates VERSION.h. It is a very simple C-program and doesn't do a lot of checking. </p> file: [73e9b86df1] check-in: [f66f414fd3] user: renez branch: windowscompilers, size: 12843
2010-07-08
17:53
Take care to close the connection to the database file before existing. This gives the database a chance to clean up (and, for example, delete WAL and shared-memory files). file: [99731ce4de] check-in: [932825bc6a] user: drh branch: trunk, size: 12780
2010-07-04
21:11
Small performance tweaks for clone and rebuild. file: [901599a7e3] check-in: [710a8ba993] user: drh branch: trunk, size: 12766
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [a419ab6b05] check-in: [c06edd231f] user: drh branch: clear-title, size: 12763
2010-03-06
14:44
Windows clients now preserve the execute permission bits when doing a commit. file: [bdaeea84bd] check-in: [356fc21d40] user: drh branch: trunk, size: 13039
2010-02-25
12:58
If a file has been deleted from the filesystem, but not deleted by fossil, then make the "update" command restore that file. Ticket [7c3ca0eae8287] file: [28f5f355ca] check-in: [63d5a4fe25] user: drh branch: trunk, size: 13021
2010-01-31
20:29
If the REPOSITORY argument to the "server" or "http" commands is a directory, then use the first element of PATH_INFO as the basename of a repository in that directory. file: [6dacf75e0c] check-in: [9cd2c42e79] user: drh branch: trunk, size: 12945
2010-01-20
21:51
Fix a bug in file change detection introduced by check-in [d7a583e697]. Don't use that check-in, nor [30f23e3f5c]. file: [13be03b540] check-in: [1abc8a940e] user: drh branch: trunk, size: 12927
20:35
Make the mtime-changes setting the default. Avoid redundant calls to stat(). file: [99f0f9c698] check-in: [d7a583e697] user: drh branch: trunk, size: 12904
2009-11-14
14:38
In the file_isdir() routine, make sure the filename is simplified (has no "/../" or "/./" components and does not end with "/") in order to work around bugs in mingw. file: [8138522279] check-in: [a7822bcc00] user: drh branch: trunk, size: 12331
2009-11-11
16:21
Deal with windows filename aliasing in the "all" command. Ticket [974618fe5a8]. Also display the home directory for windows users with the "info" command since the home directory is non-obvious in windows. file: [7be765ce11] check-in: [d5695157d0] user: drh branch: trunk, size: 12219
2009-09-13
16:19
On windows, if the first character of a pathname is '\' then assume that is a full pathname, not a relative pathname. Ticket [cdd360438de]. file: [146394c81a] check-in: [42bf80978d] user: drh branch: trunk, size: 11576
2009-01-13
18:43
Add code to understand the "https://" prefix on server URLs. Any attempt to use https gives an error at this point, however. This is a work in progress. file: [7217527055] check-in: [797d680ef5] user: drh branch: trunk, size: 11548
2008-11-21
22:16
Fix to the pathname simplifer logic. file: [5e3422939d] check-in: [d31c0f9c29] user: drh branch: trunk, size: 10403
2008-11-09
19:22
Add the "mv" and "rename" commands (aliases for the same thing). file: [3bd9bc50a5] check-in: [e146d800ac] user: drh branch: trunk, size: 10376
2008-10-05
12:34
Get cloning working for local files without the use of network I/O. Ticket [b3482d580e]. file: [d20fa8930e] check-in: [9236f0c086] user: drh branch: trunk, size: 10089
2008-07-23
13:01
The "extra" and "clean" commands ignore the repository file if the repository happens to be within the check-out. Ticket [c7b35be88]. file: [4b43b0dc29] check-in: [2ecc407d9b] user: drh branch: trunk, size: 9616
2008-05-17
08:53
Allow the check-in of files show names begin with ".". Add the "private" table to repository schema but do not yet do anything with it. file: [33dcca33b9] check-in: [525cc35bf3] user: drh branch: trunk, size: 9494
2008-05-01
18:42
On windows builds, understand both "C:/" and "C:\" as the beginning of an absolute pathname. file: [2d8ec6b3a1] check-in: [becc24e4e9] user: drh branch: trunk, size: 9231
2008-03-11
19:21
Fixed Win32 build breakage file: [0ad3dd78ce] check-in: [dbb2cee113] user: mjanssen branch: trunk, size: 9169
2008-02-21
14:27
Record whether or not files have their execute permission bit set. Set or clear the execute permission bit upon checkout. file: [6f2a64a222] check-in: [33c31f73cd] user: drh branch: trunk, size: 9100
2008-02-08
16:24
Fail with an error if a file is outside the checkout tree. file: [d8c82766a0] check-in: [b3ec774ab7] user: drh branch: trunk, size: 8721
2007-09-25
21:21
Fixed many uninitialized variable warnings and some potential bug found via -Wall -Werror on gcc. file: [be58713833] check-in: [e63a9fd9d0] user: jnc branch: trunk, size: 8665
00:17
When checking for win32 absolute paths, I added a check to make sure we don't overstep the bounds of a string file: [525e8c0661] check-in: [af3a751841] user: jnc branch: trunk, size: 8655
2007-09-24
19:42
Fixed error with absolute pathnames when opening a repo on Win32 file: [18cdda54a2] check-in: [c841af0d50] user: mjanssen branch: trunk, size: 8625
2007-09-22
06:47
Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning. file: [0453cec099] check-in: [c7278fd013] user: jnc branch: trunk, size: 8580
2007-09-21
21:53
Win32 port: compiles, all tests pass but many functions fail due to path separators. Incomplete. Path fixes to come next file: [b0274645f0] check-in: [83c876b447] user: jnc branch: trunk, size: 8580
2007-07-21
14:10
Added: Initial check-in of m1 sources. file: [43aa6bdf65] check-in: [dbda8d6ce9] user: drh branch: trunk, size: 8523