Artifact 63adf293598e2339cfbaefb197830c584e75e3e38aefdb4d0d5865fcab183928:
- File www/json-api/api-checkout.md — part of check-in [f8d6e8c12a] at 2023-07-07 11:55:35 on branch trunk — JSON API: mention 'priorName' of renamed files in status report As discussed with Stephan in /chat. File objects in the renamed case possess a 'priorName' property in addition to the 'name' reported in all cases. (user: mark size: 1786) [more...]
JSON API: /status
Status of Local Checkout
Status: implemented 20130223
Required permissions: n/a (local access only)
Request: /json/status
This command requires a local checkout and is analog to the "fossil status" command.
Request Options: currently none.
Payload example:
{
"repository":"/home/stephan/cvs/fossil/fossil.fsl",
"localRoot":"/home/stephan/cvs/fossil/fossil/",
"checkout":{
"uuid":"b38bb4f9bd27d0347b62ecfac63c4b8f57b5c93b",
"tags":["trunk"],
"datetime":"2013-02-22 17:34:19 UTC",
"timestamp":1361554459
},
/* "parent" info is currently missing. */
"files":[
{"name":"src/checkin.c", "status":"edited"}
...],
"errorCount":0 /* see notes below */
}
Notes:
- The
checkout.tagsproperty follows the framework-wide convention that the first tag in the list is the primary branch and any others are secondary. errorCountis +1 for each missing file. Conflicts are not treated as errors because the CLI 'status' command does not treat them as such.- The
"status"entry for each of the"files"entries will be either a single string containing a single description of the status change, or an array of strings if more than one change was made, e.g."edited"and"renamed". The status strings include:
deleted,new,notAFile,missing,updatedByMerge,updatedByIntegrate,addedBymerge,addedByIntegrate,conflict,edited,renamed - File objects with a
"renamed"status will contain a"priorName"property in addition to the"name"property reported in all cases. - TODO: Info for the parent version is currently missing.
- TODO: "merged with" info for the checkout is currently missing.