Fossil SCM

-R, --repository not recognized with "fossil branch new" cmd

Closed

f37c5d9fe64b652… · opened 15 years, 6 months ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Works_As_Designed
Subsystem
Created
Sept. 23, 2010 6:09 p.m.

-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.



Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button