# HG changeset patch # User Anton Shestakov # Date 1443259452 -28800 # Node ID f206543d838079a5af9bdbe2f4677af2f3bae649 # Parent 0f0cda81e9b0343bf2077d9fcbde3ce6ae64151a monoblue: provide links to branches, tags and bookmarks by name This is adapted from cd842821db2c, that was added to paper for 3.5 release. It adds another way to refer to branches, tags and bookmarks in urls: by name. It's still possible to navigate to a specific changeset hash, but now you can get more descriptive urls straight from /summary page, for example. branchentry template (and so the whole branches table on /summary and /branches) lost the column that had a plain changeset hash, because tags and bookmarks don't have this column and also because there is already a way to address branch by its changeset hash (changeset link just next to it). Maybe we can instead bring this column with a plain changeset hash to tags and bookmarks, but this, more terse, new look feels fine. diff -r 0f0cda81e9b0 -r f206543d8380 mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Sat Sep 26 17:15:58 2015 +0800 +++ b/mercurial/templates/monoblue/map Sat Sep 26 17:24:12 2015 +0800 @@ -173,7 +173,7 @@ tagentry = ' {date|rfc822date} - {tag|escape} + {tag|escape} changeset | changelog | @@ -184,7 +184,7 @@ bookmarkentry = ' {date|rfc822date} - {bookmark|escape} + {bookmark|escape} changeset | changelog | @@ -195,8 +195,7 @@ branchentry = ' {date|rfc822date} - {node|short} - {branch|escape} + {branch|escape} changeset | changelog | diff -r 0f0cda81e9b0 -r f206543d8380 tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t Sat Sep 26 17:15:58 2015 +0800 +++ b/tests/test-hgweb-symrev.t Sat Sep 26 17:24:12 2015 +0800 @@ -649,11 +649,11 @@ changeset | files - xyzzy + xyzzy changeset | changelog | files - 9d8c40cba617 + default changeset | changelog | files @@ -689,19 +689,19 @@ | (0) tip $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'tags?style=monoblue' | egrep $REVLINKS - tip + tip changeset | changelog | files $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'bookmarks?style=monoblue' | egrep $REVLINKS - xyzzy + xyzzy changeset | changelog | files $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'branches?style=monoblue' | egrep $REVLINKS - 9d8c40cba617 + default changeset | changelog | files