Fossil SCM
Fossil clobbers existing files when creating new repo
5ba427be8809342…
· opened 11 years, 2 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Important
- Resolution
- Fixed
- Subsystem
- —
- Created
- Jan. 29, 2015 8:21 p.m.
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
Comments (5)
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
see [clobber_fixer] for proposed fixes/developemnt.
[bb15d408a4d68f8ab853e] is much too low-level --- thinking move that code to ea. of clone and new...
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.
fixed w/ [7670e65f6c]; will await review before merge to trunk.