Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | The touch command no longer treats missing files as a fatal error, instead emitting a warning message. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
56530e9b6d061abbc79ea902354ef241 |
| User & Date: | stephan 2019-06-17 07:09:49.850 |
Context
|
2019-06-18
| ||
| 01:48 | Partial walk-back of [66d55e9b43]: instead of simply removing the recommendation to pass --allow-fork to fossil checkin to solve the "would fork" problem, recommend instead that the user create a new branch with --branch. That advice causes Fossil to create a named branch rather than a nameless branch -- well, *duplicate-named*, anyway -- which is... check-in: 8dcf4ffce1 user: wyoung tags: trunk | |
|
2019-06-17
| ||
| 07:09 | The touch command no longer treats missing files as a fatal error, instead emitting a warning message. check-in: 56530e9b6d user: stephan tags: trunk | |
|
2019-06-16
| ||
| 20:16 | Polishing pass on www/collisions.ipynb: improved docs, simplified the "sd" parameter as "spread", removed an empty cell, and renumbered the cells. check-in: 847423edfa user: wyoung tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1808 1809 1810 1811 1812 1813 1814 | ** strictly cosmetic: it is used when dryRunFlag, verboseFlag, or ** quietFlag generate output, and is assumed to be a repo-relative or ** or subdir-relative filename. ** ** newMTime is the file's new timestamp (Unix epoch). ** ** Returns 1 if it sets zAbsName's mtime, 0 if it does not (indicating | | | | | | | < | 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 | ** strictly cosmetic: it is used when dryRunFlag, verboseFlag, or ** quietFlag generate output, and is assumed to be a repo-relative or ** or subdir-relative filename. ** ** newMTime is the file's new timestamp (Unix epoch). ** ** Returns 1 if it sets zAbsName's mtime, 0 if it does not (indicating ** that the file already has that timestamp or a warning was emitted ** or was not found). If dryRunFlag is true then it outputs the name ** of the file it would have timestamped but does not stamp the ** file. If verboseFlag is true, it outputs a message if the file's ** timestamp is actually modified. If quietFlag is true then the ** output of non-fatal warning messages is suppressed. ** ** As a special case, if newMTime is 0 then this function emits a ** warning (unless quietFlag is true), does NOT set the timestamp, and ** returns 0. The timestamp is known to be zero when ** mtime_of_manifest_file() is asked to provide the timestamp for a ** file which is currently undergoing an uncommitted merge (though ** this may depend on exactly where that merge is happening the |
| ︙ | ︙ | |||
1837 1838 1839 1840 1841 1842 1843 |
if( quietFlag==0 ){
fossil_print("SKIPPING timestamp of 0: %s\n", zTreeName);
}
return 0;
}
currentMtime = file_mtime(zAbsName, 0);
if(currentMtime<0){
| | > | 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 |
if( quietFlag==0 ){
fossil_print("SKIPPING timestamp of 0: %s\n", zTreeName);
}
return 0;
}
currentMtime = file_mtime(zAbsName, 0);
if(currentMtime<0){
fossil_print("SKIPPING: cannot stat file: %s\n", zAbsName);
return 0;
}else if(currentMtime==newMtime){
return 0;
}else if( dryRunFlag!=0 ){
fossil_print( "dry-run: %s\n", zTreeName );
}else{
file_set_mtime(zAbsName, newMtime);
if( verboseFlag!=0 ){
|
| ︙ | ︙ |