Comments
Patch
@@ -22,9 +22,17 @@ bookmarkentry = '\{
"bookmark": {bookmark|json},
"node": {node|json},
"date": {date|json}
}'
-branches = '"not yet implemented"'
+branches = '\{
+ "branches": [{join(entries%branchentry, ", ")}]
+ }'
+branchentry = '\{
+ "branch": {branch|json},
+ "node": {node|json},
+ "date": {date|json},
+ "status": {status|json}
+ }'
summary = '"not yet implemented"'
filediff = '"not yet implemented"'
filecomparison = '"not yet implemented"'
fileannotate = '"not yet implemented"'
@@ -217,9 +217,30 @@ branches/ shows branches info
$ request json-branches
200 Script output follows
- "not yet implemented"
+ {
+ "branches": [
+ {
+ "branch": "test-branch",
+ "date": [
+ 0.0,
+ 0
+ ],
+ "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
+ "status": "open"
+ },
+ {
+ "branch": "default",
+ "date": [
+ 0.0,
+ 0
+ ],
+ "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
+ "status": "open"
+ }
+ ]
+ }
summary/ shows a summary of repository state
$ request json-summary