tests/test-hgweb-json.t
changeset 29382 e4b777fe1576
parent 29381 8bfe44494a0d
child 29383 f3dca85bd2d1
equal deleted inserted replaced
29381:8bfe44494a0d 29382:e4b777fe1576
   797 summary/ shows a summary of repository state
   797 summary/ shows a summary of repository state
   798 
   798 
   799   $ request json-summary
   799   $ request json-summary
   800   200 Script output follows
   800   200 Script output follows
   801   
   801   
   802   "not yet implemented"
   802   {
       
   803     "archives": [],
       
   804     "bookmarks": [
       
   805       {
       
   806         "bookmark": "bookmark2",
       
   807         "date": [
       
   808           0.0,
       
   809           0
       
   810         ],
       
   811         "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
       
   812       },
       
   813       {
       
   814         "bookmark": "bookmark1",
       
   815         "date": [
       
   816           0.0,
       
   817           0
       
   818         ],
       
   819         "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
       
   820       }
       
   821     ],
       
   822     "branches": [
       
   823       {
       
   824         "branch": "default",
       
   825         "date": [
       
   826           0.0,
       
   827           0
       
   828         ],
       
   829         "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
       
   830         "status": "open"
       
   831       },
       
   832       {
       
   833         "branch": "test-branch",
       
   834         "date": [
       
   835           0.0,
       
   836           0
       
   837         ],
       
   838         "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
       
   839         "status": "inactive"
       
   840       }
       
   841     ],
       
   842     "lastchange": [
       
   843       0.0,
       
   844       0
       
   845     ],
       
   846     "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
       
   847     "shortlog": [
       
   848       {
       
   849         "bookmarks": [],
       
   850         "branch": "default",
       
   851         "date": [
       
   852           0.0,
       
   853           0
       
   854         ],
       
   855         "desc": "merge test-branch into default",
       
   856         "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
       
   857         "parents": [
       
   858           "ceed296fe500c3fac9541e31dad860cb49c89e45",
       
   859           "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
       
   860         ],
       
   861         "phase": "draft",
       
   862         "tags": [
       
   863           "tip"
       
   864         ],
       
   865         "user": "test"
       
   866       },
       
   867       {
       
   868         "bookmarks": [],
       
   869         "branch": "test-branch",
       
   870         "date": [
       
   871           0.0,
       
   872           0
       
   873         ],
       
   874         "desc": "another commit in test-branch",
       
   875         "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
       
   876         "parents": [
       
   877           "6ab967a8ab3489227a83f80e920faa039a71819f"
       
   878         ],
       
   879         "phase": "draft",
       
   880         "tags": [],
       
   881         "user": "test"
       
   882       },
       
   883       {
       
   884         "bookmarks": [],
       
   885         "branch": "test-branch",
       
   886         "date": [
       
   887           0.0,
       
   888           0
       
   889         ],
       
   890         "desc": "create test branch",
       
   891         "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
       
   892         "parents": [
       
   893           "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
       
   894         ],
       
   895         "phase": "draft",
       
   896         "tags": [],
       
   897         "user": "test"
       
   898       },
       
   899       {
       
   900         "bookmarks": [
       
   901           "bookmark2"
       
   902         ],
       
   903         "branch": "default",
       
   904         "date": [
       
   905           0.0,
       
   906           0
       
   907         ],
       
   908         "desc": "create tag2",
       
   909         "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
       
   910         "parents": [
       
   911           "f2890a05fea49bfaf9fb27ed5490894eba32da78"
       
   912         ],
       
   913         "phase": "draft",
       
   914         "tags": [],
       
   915         "user": "test"
       
   916       },
       
   917       {
       
   918         "bookmarks": [],
       
   919         "branch": "default",
       
   920         "date": [
       
   921           0.0,
       
   922           0
       
   923         ],
       
   924         "desc": "another commit to da/foo",
       
   925         "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
       
   926         "parents": [
       
   927           "93a8ce14f89156426b7fa981af8042da53f03aa0"
       
   928         ],
       
   929         "phase": "draft",
       
   930         "tags": [
       
   931           "tag2"
       
   932         ],
       
   933         "user": "test"
       
   934       },
       
   935       {
       
   936         "bookmarks": [],
       
   937         "branch": "default",
       
   938         "date": [
       
   939           0.0,
       
   940           0
       
   941         ],
       
   942         "desc": "create tag",
       
   943         "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
       
   944         "parents": [
       
   945           "78896eb0e102174ce9278438a95e12543e4367a7"
       
   946         ],
       
   947         "phase": "public",
       
   948         "tags": [],
       
   949         "user": "test"
       
   950       },
       
   951       {
       
   952         "bookmarks": [],
       
   953         "branch": "default",
       
   954         "date": [
       
   955           0.0,
       
   956           0
       
   957         ],
       
   958         "desc": "move foo",
       
   959         "node": "78896eb0e102174ce9278438a95e12543e4367a7",
       
   960         "parents": [
       
   961           "8d7c456572acf3557e8ed8a07286b10c408bcec5"
       
   962         ],
       
   963         "phase": "public",
       
   964         "tags": [
       
   965           "tag1"
       
   966         ],
       
   967         "user": "test"
       
   968       },
       
   969       {
       
   970         "bookmarks": [
       
   971           "bookmark1"
       
   972         ],
       
   973         "branch": "default",
       
   974         "date": [
       
   975           0.0,
       
   976           0
       
   977         ],
       
   978         "desc": "modify da/foo",
       
   979         "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
       
   980         "parents": [
       
   981           "f8bbb9024b10f93cdbb8d940337398291d40dea8"
       
   982         ],
       
   983         "phase": "public",
       
   984         "tags": [],
       
   985         "user": "test"
       
   986       },
       
   987       {
       
   988         "bookmarks": [],
       
   989         "branch": "default",
       
   990         "date": [
       
   991           0.0,
       
   992           0
       
   993         ],
       
   994         "desc": "modify foo",
       
   995         "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
       
   996         "parents": [
       
   997           "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
       
   998         ],
       
   999         "phase": "public",
       
  1000         "tags": [],
       
  1001         "user": "test"
       
  1002       },
       
  1003       {
       
  1004         "bookmarks": [],
       
  1005         "branch": "default",
       
  1006         "date": [
       
  1007           0.0,
       
  1008           0
       
  1009         ],
       
  1010         "desc": "initial",
       
  1011         "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
       
  1012         "parents": [],
       
  1013         "phase": "public",
       
  1014         "tags": [],
       
  1015         "user": "test"
       
  1016       }
       
  1017     ],
       
  1018     "tags": [
       
  1019       {
       
  1020         "date": [
       
  1021           0.0,
       
  1022           0
       
  1023         ],
       
  1024         "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
       
  1025         "tag": "tag2"
       
  1026       },
       
  1027       {
       
  1028         "date": [
       
  1029           0.0,
       
  1030           0
       
  1031         ],
       
  1032         "node": "78896eb0e102174ce9278438a95e12543e4367a7",
       
  1033         "tag": "tag1"
       
  1034       }
       
  1035     ]
       
  1036   }
   803 
  1037 
   804 filediff/{revision}/{path} shows changes to a file in a revision
  1038 filediff/{revision}/{path} shows changes to a file in a revision
   805 
  1039 
   806   $ request json-diff/f8bbb9024b10/foo
  1040   $ request json-diff/f8bbb9024b10/foo
   807   200 Script output follows
  1041   200 Script output follows