# HG changeset patch # User Anton Shestakov # Date 1527763175 -28800 # Node ID 9ed3527019b5f214558aae2a37e507674ac08bfa # Parent d6aa1fc8292f81594cabc82eb3eff5877fabcb75 monoblue: don't show '[up]' in file view when in root directory already diff -r d6aa1fc8292f -r 9ed3527019b5 mercurial/templates/monoblue/manifest.tmpl --- a/mercurial/templates/monoblue/manifest.tmpl Thu May 31 18:33:49 2018 +0800 +++ b/mercurial/templates/monoblue/manifest.tmpl Thu May 31 18:39:35 2018 +0800 @@ -33,13 +33,7 @@

{path|escape} {alltags}

- - - - - - - + {ifeq(path, up, '', updirentry)} {dentries%direntry} {fentries%fileentry}
drwxr-xr-x[up]
diff -r d6aa1fc8292f -r 9ed3527019b5 mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Thu May 31 18:33:49 2018 +0800 +++ b/mercurial/templates/monoblue/map Thu May 31 18:39:35 2018 +0800 @@ -59,6 +59,16 @@ changelogentry = changelogentry.tmpl changeset = changeset.tmpl manifest = manifest.tmpl +updirentry = ' + + drwxr-xr-x + + + + [up] + +   + ' direntry = ' drwxr-xr-x diff -r d6aa1fc8292f -r 9ed3527019b5 tests/test-hgweb-descend-empties.t --- a/tests/test-hgweb-descend-empties.t Thu May 31 18:33:49 2018 +0800 +++ b/tests/test-hgweb-descend-empties.t Thu May 31 18:39:35 2018 +0800 @@ -312,13 +312,7 @@

/ draft default tip

- - - - - - - + diff -r d6aa1fc8292f -r 9ed3527019b5 tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t Thu May 31 18:33:49 2018 +0800 +++ b/tests/test-hgweb-symrev.t Thu May 31 18:39:35 2018 +0800 @@ -754,7 +754,6 @@
  • graph
  • changeset
  • zip
  • - dir @@ -817,7 +816,6 @@
  • graph
  • changeset
  • zip
  • - dir diff -r d6aa1fc8292f -r 9ed3527019b5 tests/test-hgweb.t --- a/tests/test-hgweb.t Thu May 31 18:33:49 2018 +0800 +++ b/tests/test-hgweb.t Thu May 31 18:39:35 2018 +0800 @@ -812,6 +812,10 @@ [1] $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=gitweb' | grep -F '[up]' [up] + $ get-with-headers.py localhost:$HGPORT 'file/tip?style=monoblue' | grep -F '[up]' + [1] + $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=monoblue' | grep -F '[up]' + [up] no style can be loaded from directories other than the specified paths
    drwxr-xr-x[up]
    drwxr-xr-x [up] files [up] files