When versioned settings are present, I noted something strange in
the /setup_settings page. Submitting this page with whatever
value will give the following warnings:

    setting ignore-glob has both versioned and non-versioned values: using
    versioned value from file .fossil-settings/ignore-glob (to silence
this warning,
    either create an empty file named .fossil-settings/ignore-glob.no-warn or
    delete the non-versioned setting with "fossil unset ignore-glob")
(and the same for keep-glob)

To reproduce, just do "fossil ui" in the current latest check-out
"fossil" repository and navigate "Admin" -> "Settings", click
"Apply Settings" and then click "Apply Settings" again.

The reason is that, submitting this page, the settings are written to the
local configuration, so the warning is justified I can see two
possible solutions:

1) modify the setup_settings page such that the related input elements
   are disabled when a versioned setting is present.
2) modify db_set such that when a versioned setting is present the value
   is written to the file in stead of the local configuration.

1) would be easiest to implement. 2) would mean that versioned
settings would be editable through the /setup_settings page if
they already exist, but you cannot remove versioned settings or
create new versioned settings.

I don't really have a preference to either 1) or 2). Any suggestions?

Regards,
        Jan Nijtmans
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to