tests/test-hgweb-json.t
changeset 24589 30a737ae9b7d
parent 24588 0bf54479a9eb
child 24590 0bb733dfcabe
equal deleted inserted replaced
24588:0bf54479a9eb 24589:30a737ae9b7d
   117   
   117   
   118   "not yet implemented"
   118   "not yet implemented"
   119 
   119 
   120 file/{revision} shows root directory info
   120 file/{revision} shows root directory info
   121 
   121 
   122   $ request json-file/06e557f3edf6
   122   $ request json-file/cc725e08502a
   123   200 Script output follows
   123   200 Script output follows
   124   
   124   
   125   "not yet implemented"
   125   {
       
   126     "abspath": "/",
       
   127     "bookmarks": [],
       
   128     "directories": [
       
   129       {
       
   130         "abspath": "/da",
       
   131         "basename": "da",
       
   132         "emptydirs": ""
       
   133       }
       
   134     ],
       
   135     "files": [
       
   136       {
       
   137         "abspath": ".hgtags",
       
   138         "basename": ".hgtags",
       
   139         "date": [
       
   140           0.0,
       
   141           0
       
   142         ],
       
   143         "flags": "",
       
   144         "size": 92
       
   145       },
       
   146       {
       
   147         "abspath": "foo-new",
       
   148         "basename": "foo-new",
       
   149         "date": [
       
   150           0.0,
       
   151           0
       
   152         ],
       
   153         "flags": "",
       
   154         "size": 4
       
   155       }
       
   156     ],
       
   157     "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
       
   158     "tags": [
       
   159       "tip"
       
   160     ]
       
   161   }
   126 
   162 
   127 changelog/ shows information about several changesets
   163 changelog/ shows information about several changesets
   128 
   164 
   129   $ request json-changelog
   165   $ request json-changelog
   130   200 Script output follows
   166   200 Script output follows
   520 manifest/{revision}/{path} shows info about a directory at a revision
   556 manifest/{revision}/{path} shows info about a directory at a revision
   521 
   557 
   522   $ request json-manifest/06e557f3edf6/
   558   $ request json-manifest/06e557f3edf6/
   523   200 Script output follows
   559   200 Script output follows
   524   
   560   
   525   "not yet implemented"
   561   {
       
   562     "abspath": "/",
       
   563     "bookmarks": [],
       
   564     "directories": [
       
   565       {
       
   566         "abspath": "/da",
       
   567         "basename": "da",
       
   568         "emptydirs": ""
       
   569       }
       
   570     ],
       
   571     "files": [
       
   572       {
       
   573         "abspath": "foo",
       
   574         "basename": "foo",
       
   575         "date": [
       
   576           0.0,
       
   577           0
       
   578         ],
       
   579         "flags": "",
       
   580         "size": 4
       
   581       }
       
   582     ],
       
   583     "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
       
   584     "tags": []
       
   585   }
   526 
   586 
   527 tags/ shows tags info
   587 tags/ shows tags info
   528 
   588 
   529   $ request json-tags
   589   $ request json-tags
   530   200 Script output follows
   590   200 Script output follows