View Ticket
Not logged in
Ticket UUID: af2658e1fe1d11d5f1f23423f3964b4b7b52b3ef
Title: attempt to 'fossil init filename' where filename = dirname confuses fossil
Status: Open Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Open
Last Modified: 2010-11-14 15:31:55
Version Found In: [64459dd091]
Description & Comments:
Hello!

While being busy converting my old darcs repos into Fossil, I did a mistake when naming folder to keep git format (I do darcs --> git --> fossil) and named folder vasb.fossil.

After that I executed:

[gour@atmarama study] fossil init vasb.fossil 
fossil: SQLITE_CANTOPEN: cannot open file at line 27473 of [e55ada8924]
fossil: unable to open database file

If you have recently updated your fossil executable, you might
need to run "fossil all rebuild" to bring the repository
schemas up to date.

but, as you can see, Fossil reported a bit strange things, while, in reality, the only problem is to detect there is already folder named the same as the new supposed-to-be-created Fossil repo.

Maybe some improvement could be made in reporting such thing?

Sincerely,
Gour


anonymous claiming to be Joerg Sonnenberger added on 2010-11-14 15:31:55:
The only thing I would change is reporting the actual system error, e.g. "EISDIR".