Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb.t @ 38203:c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 31 May 2018 18:01:54 +0800 |
parents | 11ee9bf24791 |
children | d6aa1fc8292f |
line wrap: on
line diff
--- a/tests/test-hgweb.t Thu May 31 16:52:02 2018 +0800 +++ b/tests/test-hgweb.t Thu May 31 18:01:54 2018 +0800 @@ -287,11 +287,7 @@ </tr> </thead> <tbody class="stripes2"> - <tr class="fileline"> - <td class="name"><a href="/file/tip/">[up]</a></td> - <td class="size"></td> - <td class="permissions">drwxr-xr-x</td> - </tr> + <tr class="fileline"> <td class="name"> @@ -802,6 +798,17 @@ 200 Script output follows changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a> +no '[up]' entry in file view when in root directory + + $ get-with-headers.py localhost:$HGPORT 'file/tip?style=paper' | grep -F '[up]' + [1] + $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=paper' | grep -F '[up]' + <a href="/file/tip/?style=paper">[up]</a> + $ get-with-headers.py localhost:$HGPORT 'file/tip?style=coal' | grep -F '[up]' + [1] + $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=coal' | grep -F '[up]' + <a href="/file/tip/?style=coal">[up]</a> + no style can be loaded from directories other than the specified paths $ mkdir -p x/templates/fallback