View Ticket
Not logged in
Ticket UUID: f37c5d9fe64b6521befda46afda9caa09e0879ce
Title: -R, --repository not recognized with "fossil branch new" cmd
Status: Open Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution: Open
Last Modified: 2010-09-23 19:07:51
Version Found In: f29a826666
Description & Comments:
-R and --repository are not recognized when trying to create a new branch. The command synopsis and error msgs indicate it should:
$ ls
new.fsl
$ fossil help branch
Usage: fossil branch SUBCOMMAND ... ?-R|--repository FILE?

Run various subcommands to manage branches of the open repository or of the repository identified by the -R or --repository option.

fossil branch new BRANCH-NAME BASIS ?-bgcolor COLOR?
Create a new branch BRANCH-NAME off of check-in BASIS. You can optionally give the branch a default color.
fossil branch list
List all branches $ fossil branch new newbranch trunk -R ./new.fsl fossil: use --repository or -R to specify the repository database $

bharder added on 2010-09-23 18:48:16:
Have tracked (so far) to

void db_open_repository()
in
db.c
-- all looks sane up to this point (haven't dived into db_open_repository() yet).

bharder added on 2010-09-23 19:07:51:
Curious: removing second condition from

if( access(zDbName, R_OK) || file_size(zDbName)<1024 ) (function "void db_open_repository()", db.c)
things seem to work.