Add a --show-artifact-ids to the 'fossil wiki list' command. Note this commit does not add the ability to select what to update on the 'fossil wiki commit' command, that is to come in a later commit.
check-in: cbda43e7 user: dave.vines tags: technoteattachcli

Remove non tech notes from the list and error checking performed by fossil wiki --technote. Ambiguity of tech note with the same timestamp resolved in favour of the tech note with the highest modification timestamp.
check-in: 3d2341a2 user: dave.vines tags: technoteattachcli

Stop using 10h as the format for tech note ids. Note that the comment for any existing attachments to tech notes won't change as the comment is generated when the attachment is made (since this change is new, I'd expect there to be none outside of my own personal fossil repositories)
check-in: 4ce3c62b user: dave.vines tags: technoteattachcli

Fixed some typos and attempted to improve documentation of the fossil wiki command. Added and rearranged test casesd for fossil wiki to explicitly include a knownBug case for the collision between a previous attachment and a new technote that happen to occur in the same second. Note that the reverse order does not fail, as demonstrated by some additional tests.
check-in: b81125e2 user: rberteig tags: technoteattachcli

Reviewed all Usage: messages for consistency and fixed a few where the fossil command
was named in the call to usage(), causing the displayed usage to show the command name
twice. Affected commands are bisect options, test-fileage, test-set-mtime, whatis,
remote-url, and tag list.
check-in: 57f1eaec user: rberteig tags: trunk

Add a 1.2 sec delay before the test wiki-30 because it explicitly uses the current date and time, and other changes made to technotes implicitly use the current time, causing a technote name collision if the test script happens to execute with the relevent bits happening within the same wall clock second, at least on Windows. This is partly a kludge to make this test case pass reliably. It would probably be better for test cases to not have more than one reference to 'now' in a way that would cause a name collision, that is worth further investigation. Also, at first glance it doesn't look like the suite actually created to technotes at the same second, but rather it was one of the edits to an older technote that is causing the collision.
check-in: c29c75c9 user: rberteig tags: technoteattachcli

Added wiki.test as received from David Vines. This is a snapshot, the test file (usually) runs, but has an issue that I am diagnosing related to the test wiki-30.
check-in: f7513f87 user: rberteig tags: technoteattachcli

Simpler alternative to [7063f8d4cc]. Skips initial directory portion of PATH_INFO when building the g.zBaseURL and g.zTop used with a directory of repositories.
check-in: abb19e88 user: mistachkin tags: trunk

Remove support for miniz because the upstream project appears to be unmaintained.
UPDATE: The miniz project is still being maintained and this branch is a dead-end.
Closed-Leaf
check-in: b9f31fe1 user: mistachkin tags: do-not-merge, removeMiniz

New documentation of enviornment variables, global options to the fossil command, and how they interact, along with a tweak to regularize the two places that guessed the current user name to use the same environment variables in the same order.
check-in: 1ad4ae27 user: rberteig tags: trunk

Tweak make test to not include the obsolete scary warning, to use the -quiet flag, and to include the empty by default TESTFLAGS macro so that make test can be used as an easy way to invoke the test runner. Changes made in makemake.tcl, which was then run to regenerate main.mk.
Closed-Leaf
check-in: 9dc8ff23 user: rberteig tags: testerCleanup

When possible, don't call test_setup until after any checks that may cause a test script to exit early. Otherwise, test_cleanup should be called before returning.
check-in: 314e9b35 user: joel tags: testerCleanup

Fix a broken test case stash-3-4-mv by renaming it to stash-3-2-mv and fixing the issue with comparing to the fully qulified file name in the result. Marked stash-4-2-diff-CODE and stash-4-3-diff-CODE as known bugs. Now stash.test reports only known bugs, which I believe mostly relate to handling of renamed files in a stash.
check-in: 186e6a71 user: rberteig tags: testerCleanup

Do not rely on 'clock seconds' (alone) being unique between 'repo_init' calls. Make temporary directory deletion more robust. Only save the current directory on the first 'repo_init' call per test.
check-in: 004b3ffd user: mistachkin tags: testerCleanup

Set the FOSSIL_HOME envvar before each test. Use the root test run directory instead of the directories created for each test file so the config DB file on Windows doesn't mess up tests of commands like addremove and extras.
Closed-Leaf
check-in: d4907f17 user: joel tags: testCheckoutReform

Change db_create_default_users() to align its use of environment variables to set the user name to match user_select(), and try all variables on both Unix and Windows.
check-in: ace9e00f user: rberteig tags: ross-doc-env

Checkpoint after a first pass through every call to ...getenv() in src/*.c to list environment variables mentioned. Every variable has a very rough draft description. Every global command option is listed, but not all have even a rough draft description yet.
check-in: 3b5ff98c user: rberteig tags: ross-doc-env

Add a new document covering global options and environment variables used by fossil. This is a work in progress, but snapshotted as it stands so that others can poke at it.
check-in: 946ed34d user: rberteig tags: ross-doc-env

Fix glitch in tester.tcl on Windows which caused repo_init to fail to guard the users's lists of all repositories and checkouts. Setting FOSSIL_HOME as well as HOME to [pwd] resolves this neatly, and likely makes it more robust on other platforms since FOSSIL_HOME is always checked first and if set by a user, would still override the attempt made by repo_init to protect them.
check-in: dc72fd96 user: rberteig tags: trunk

Initial go at replacing URLs in the form ?name=xyz with /xyz except in places where doing so is either known to break (style_set_current_page() calls) or would require notable refactoring (/dir hyperlink generation).
Closed-Leaf
check-in: e8735d6a user: stephan tags: slash-name-links

Given that both origname and newname are always provided when stashing a file,
allow both a rename and an add by changing the PRIMARY KEY for stashfile. This does mean the schema for stashfile has changed and to take advantage it will be
necessary to close and open the repository again (or update manually with SQL).
check-in: ca574f81 user: andybradford tags: stash-fixes

Added the ability to pass the knownBug constraint through test_status_list to test. Added capability for known bug marking of segments of stash-test, and use it to mark problems with stashing renamed files. Also added checking in stash-test for the exit status, and support for -expectError.
check-in: 1a346142 user: rberteig tags: trunk

Create basic tests for fossil stash with a new file, an edited file, a renamed file and an untouched file. Use fossil stash subcommands to confirm that the right information got stored, and tests borrowed from revert.test to verify that the file system also has the expected content. Note that this does not currently cover the edge case created by fossil mv --soft, let alone the apparent assertion failure reported on list related to stash and fossil mv --soft. These tests pass on my Windows configuration as of [92877364].
check-in: 3f3eada1 user: rberteig tags: trunk

Add test cases for fossil json. Improve the test suite to support a way to treat expected non-zero status exits from fossil as success when warrented. Made minor bug fixes to the test framework, and to several test cases unrelated to JSON support.
check-in: 62627615 user: rberteig tags: trunk

Merged from trunk to pick up work in progress and a bug fix to tester.tcl. Fixed issue introduced by the addition of the insertCsrf and verifyCsrf commands from ci [f8820eff] which broke the test th1-info-commands. Also fixed the dependence on the order of commands output by TH1.
Closed-Leaf
check-in: 2de15c8e user: rberteig tags: rberteig-json-test

Simpler alternative to [7063f8d4cc]. Skips initial directory portion of PATH_INFO when building the g.zBaseURL and g.zTop used with a directory of repositories.
check-in: 7d5307b4 user: mistachkin tags: altBaseUrlRepoDir

Having the 'setup' or 'admin' permission should imply having the 'delete' and 'private' permissions as well (i.e. since they can change their own permissions anyhow).
check-in: b2411302 user: mistachkin tags: trunk

Having the 'setup' or 'admin' permission should imply having the 'delete' and 'private' permissions as well (i.e. since they can change their own permissions anyhow).
Closed-Leaf
check-in: 62f8ac1f user: mistachkin tags: adminPerms

Cover simple case of /json/user/save to create a new user. Consider covering various other ways that endpoint can be used, as well as CLI vs GET and POST. Current case is CLI based. This case completes coverage of the basic features provided by all documented JSON endpoints.
check-in: 1571e4c2 user: rberteig tags: rberteig-json-test

Add support for POST in JSON over HTTP. Test /json/cap with various ways of delivering an authToken to cover the rest of the Authentication category basic functionality. NOTE that supplying the authToken in the POSTed JSON request envelope does not appear to work. Passing it in a cookie or in a GET parameter does work as expected.
check-in: 479aadb1 user: rberteig tags: rberteig-json-test

Add cookie support to fossil_http_json, as well as extra args passed through to fossil_maybe_answer so -expectError can be used. Tweak some comments. Note doc revision eliminating /json/timeline/ci, which clears a previous knownBug. Cache a usable login cookie for both anonymous and user U1 for later use.
check-in: a9edb60a user: rberteig tags: rberteig-json-test

Included the answer text supplied to a fossil command when provided to fossil_maybe_answer in a call to protOut. This makes debugging tests using fossil http and a GET or POST to /json easier.
check-in: f3401430 user: rberteig tags: rberteig-json-test

Added more coverage of /json, leaving /json/login, /json/diff, and /json/user/save uncovered, and finding surprises with /json/wiki/diff, /json/timeline/ci, and /json/tag/cancel. All implemented coverage is of the best documented and easiest tested paths through each feature. Tests for edge cases and failure paths are not yet in place, nor are complete tests for full expected values in most cases.
check-in: c2c49b35 user: rberteig tags: rberteig-json-test

remove submenu items from branch list page that link to old-style list, since all the individual inforation is now available in aggregated and sortable form on the main list
Leaf
check-in: 972dc1c6 user: baruch tags: do-not-merge, test-only

Added /json/whoami from CLI, changed /json/cap to only care that it worked from CLI since capabilities are sort of meaningless in CLI mode. Added checks for caps provided to each logged in user by /json/login from its own results. Starting on /json/branch/list. All tests pass except known bugs and TODOs.
check-in: bab84bd7 user: rberteig tags: rberteig-json-test

Also test /json/wiki/preview, /json/g, /json/rebuild, /json/resultCodes, /json/anonymousPassword, /json/login for both anonymous and a normal user. Note that test for /json/cap is a work in progress since the CLI ingores any auth tokens and always acts with all caps.
check-in: 9b8b0518 user: rberteig tags: rberteig-json-test

Marked invocations of fossil that are expected to return a non-zero status with the -expectError flag in the amend, clean, and merge5 test files. This makes tester.tcl -quiet be truely quiet for those files when all tests are passing. Deliberately did not mark the invocation in merge6.test which foreshadows the failure of the merge_multi-4 test, as it is not clear to me whether the bug is in the test case or in fossil.
check-in: 62f59956 user: rberteig tags: rberteig-json-test

Added copyright and license comment blocks to two existing test case files that were missing them, with years based on looking for when the tests were first added to the repository.
check-in: 08a35878 user: rberteig tags: trunk

Update copyright date to this year since the JSON tests are new this year. Fix indentation of Tcl to match established convention. Add test of JSON API version to reflect earliest I expect to pass these tests. Document block of Version and HAI, and add version for consistency.
check-in: c4f8d88f user: Ross tags: rberteig-json-test

Place a cornerstone for scaffolding of the test cases for the fossil json command and related REST API. This begins with an extension to fossil_maybe_answer in tester.tcl that adds a -expectError option to flag invocations of fossil that are expected to exit with error status and not log it when -quiet is in effect. The new file json.test has the first few test cases for fossil json, all of which are currently passing.
check-in: 95080f47 user: Ross tags: rberteig-json-test