Ticket Hash: | 5ba427be8809342c6fbdcf48c9c8365467048d28 | |||
Title: | Fossil clobbers existing files when creating new repo | |||
Status: | Fixed | Type: | Code_Defect | |
Severity: | Important | Priority: | ||
Subsystem: | Resolution: | Fixed | ||
Last Modified: | 2015-02-17 01:49:57 | |||
Version Found In: | 9586ac14b8 | |||
User Comments: | ||||
bharder added on 2015-01-29 20:21:56:
kamloops$ ls -ld ../fossils/re2.fsl ls: ../fossils/re2.fsl: No such file or directory kamloops$ touch ../fossils/re2.fsl kamloops$ file ../fossils/re2.fsl ../fossils/re2.fsl: empty kamloops$ fossil new ../fossils/re2.fsl project-id: edf5ba355b8b496b71badd2a16fc0ba178018b59 server-id: 80334132ba58383783495f24bfb31607ffe7ed41 admin-user: bch (initial password is "553f2f") kamloops$ file ../fossils/re2.fsl ../fossils/re2.fsl: Fossil repository - SQLite3 database nobody added on 2015-01-29 20:31:57: see [clobber_fixer] for proposed fixes/developemnt. nobody added on 2015-01-29 20:42:38: [bb15d408a4d68f8ab853e] is *much* too low-level --- thinking move that code to ea. of clone and new... bharder added on 2015-01-29 22:39:57: Would be nicer (necessary?) to use fossil_stat() rather than stat directly but in my tests it doesn't come to db.c and clone.c gently. nobody added on 2015-01-30 00:15:43: fixed w/ [7670e65f6c]; will await review before merge to trunk. |