# HG changeset patch # User Anton Shestakov # Date 2015-09-26 09:24:12 # 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 --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map +++ b/mercurial/templates/monoblue/map @@ -173,7 +173,7 @@ tags = tags.tmpl tagentry = ' {date|rfc822date} - {tag|escape} + {tag|escape} changeset | changelog | @@ -184,7 +184,7 @@ bookmarks = bookmarks.tmpl bookmarkentry = ' {date|rfc822date} - {bookmark|escape} + {bookmark|escape} changeset | changelog | @@ -195,8 +195,7 @@ branches = branches.tmpl branchentry = ' {date|rfc822date} - {node|short} - {branch|escape} + {branch|escape} changeset | changelog | diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t +++ b/tests/test-hgweb-symrev.t @@ -649,11 +649,11 @@ Set up the repo changeset | files - xyzzy + xyzzy changeset | changelog | files - 9d8c40cba617 + default changeset | changelog | files @@ -689,19 +689,19 @@ Set up the repo | (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