tests/test-hgweb.t
changeset 38203 c2e3bc99fba4
parent 37827 11ee9bf24791
child 38204 d6aa1fc8292f
equal deleted inserted replaced
38202:45765264ae3a 38203:c2e3bc99fba4
   285     <th class="size">size</th>
   285     <th class="size">size</th>
   286     <th class="permissions">permissions</th>
   286     <th class="permissions">permissions</th>
   287   </tr>
   287   </tr>
   288   </thead>
   288   </thead>
   289   <tbody class="stripes2">
   289   <tbody class="stripes2">
   290   <tr class="fileline">
   290   
   291     <td class="name"><a href="/file/tip/">[up]</a></td>
       
   292     <td class="size"></td>
       
   293     <td class="permissions">drwxr-xr-x</td>
       
   294   </tr>
       
   295   
   291   
   296   <tr class="fileline">
   292   <tr class="fileline">
   297   <td class="name">
   293   <td class="name">
   298   <a href="/file/tip/da">
   294   <a href="/file/tip/da">
   299   <img src="/static/coal-folder.png" alt="dir."/> da/
   295   <img src="/static/coal-folder.png" alt="dir."/> da/
   800 
   796 
   801   $ get-with-headers.py localhost:$HGPORT 'rev/d%252Fe%252Ff?style=paper' | egrep '^200|changeset 0:'
   797   $ get-with-headers.py localhost:$HGPORT 'rev/d%252Fe%252Ff?style=paper' | egrep '^200|changeset 0:'
   802   200 Script output follows
   798   200 Script output follows
   803    changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a>
   799    changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a>
   804 
   800 
       
   801 no '[up]' entry in file view when in root directory
       
   802 
       
   803   $ get-with-headers.py localhost:$HGPORT 'file/tip?style=paper' | grep -F '[up]'
       
   804   [1]
       
   805   $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=paper' | grep -F '[up]'
       
   806   <a href="/file/tip/?style=paper">[up]</a>
       
   807   $ get-with-headers.py localhost:$HGPORT 'file/tip?style=coal' | grep -F '[up]'
       
   808   [1]
       
   809   $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=coal' | grep -F '[up]'
       
   810   <a href="/file/tip/?style=coal">[up]</a>
       
   811 
   805 no style can be loaded from directories other than the specified paths
   812 no style can be loaded from directories other than the specified paths
   806 
   813 
   807   $ mkdir -p x/templates/fallback
   814   $ mkdir -p x/templates/fallback
   808   $ cat <<EOF > x/templates/fallback/map
   815   $ cat <<EOF > x/templates/fallback/map
   809   > default = 'shortlog'
   816   > default = 'shortlog'